Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Fixing "missing dspace modules jspui src main webapp directory"

peterdietz edited this page Jan 13, 2012 · 1 revision

At one point in time, no modifications had been made to the DSpace repository to improve its interaction with Git, only SVN was supported. So you'll need to create a .gitignore file that will ignore certain file name patterns from version control. Files to ignore are the compiled output directories called target.

echo "target/" > .gitignore

If you run into an error while trying to recompile with 'mvn package' that dspace/modules/jspui/src/main/webapp directory does not exist, then you have to create that directory. This is due to Git's inability to track empty directories. The DSpace/Git repository has since fixed the interaction with this, but if this affects you, then these are the steps to fix this.

mkdir -p dspace/modules/jspui/src/main/webapp  
mkdir -p dspace/modules/lni/src/main/webapp  
mkdir -p dspace/modules/oai/src/main/webapp  
mkdir -p dspace/modules/solr/src/main/webapp  
mkdir -p dspace/modules/sword/src/main/webapp  
mkdir -p dspace/modules/swordv2/src/main/webapp  
mkdir -p dspace/modules/xmlui/src/main/webapp

And put a place-holder file that can be ignored, so that Git tracks the directory.

touch dspace/modules/jspui/src/main/webapp/.gitignore
touch dspace/modules/lni/src/main/webapp/.gitignore  
touch dspace/modules/oai/src/main/webapp/.gitignore  
touch dspace/modules/solr/src/main/webapp/.gitignore  
touch dspace/modules/sword/src/main/webapp/.gitignore  
touch dspace/modules/swordv2/src/main/webapp/.gitignore  
touch dspace/modules/xmlui/src/main/webapp/.gitignore
Clone this wiki locally