SUNScholar/Install DSpace/S05

From Libopedia
Jump to navigation Jump to search
NEXT - STEP 6

Step 5. Maven packages build and install

Make sure we have the right file permissions for a build.

sudo chown dspace.dspace -R $HOME

Change to the source folder as follows:

cd $HOME/source

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

mvn -U package

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

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.

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] ------------------------------------------------------------------------

References