SUNScholar/Install DSpace/S05

NEXT - STEP 6

Step 5. Build the DSpace Java webapps
First make sure we have the right file permissions for a build. sudo chown dspace.dspace -R $HOME

sudo chmod 0777 -R $HOME

Change to the source folder as follows:

cd $HOME/

Type the following to download the maven packages. Ensure you have an open connection to the internet first.

mvn -U clean package

A lot of stuff will start to be downloaded and scroll by on the screen.

If the downloads start, then go make a cup of coffee and check your emails... this takes quite a while with slow internet connections !!

When complete you will get a message at the end like this: [INFO] [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 5 minutes 15 seconds [INFO] Finished at: Fri Aug 03 13:45:02 SAST 2012 [INFO] Final Memory: 95M/273M [INFO]

Troubleshooting
If your maven proxy settings are ok and you still get download errors, then try the following: mvn install

If nothing starts downloading or you get download errors, then check your maven config file for proxy settings or ask for an open connection to the internet for your server from your central IT department.

Another possibility of a failure to build maybe a slow machine, in that case just restart the build several times until the build is complete.