Difference between revisions of "SUNScholar/Install DSpace/S05"

From Libopedia
Jump to navigation Jump to search
m
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
</center>
 
</center>
  
==Step 5. Build the DSpace Java webapp==
+
==Step 5. Build the DSpace Java webapps==
Make sure we have the right file permissions for a build.
+
First make sure we have the right file permissions for a build.
 
  sudo chown dspace.dspace -R $HOME
 
  sudo chown dspace.dspace -R $HOME
 +
 +
sudo chmod 0777 -R $HOME
  
 
Change to the source folder as follows:
 
Change to the source folder as follows:
  
  cd $HOME/<u>[[SUNScholar/Install_DSpace/S03#Step_3.2|source]]</u>
+
  cd $HOME/{{Source}}
  
 
Type the following to download the maven packages. ''Ensure you have an open connection to the internet first''.
 
Type the following to download the maven packages. ''Ensure you have an open connection to the internet first''.
  
  mvn -U package
+
  mvn -U clean package
  
 
''A lot of stuff will start to be downloaded and scroll by on the screen.''
 
''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 !!'''
+
If the downloads start, then go make a cup of coffee and check your emails... <font color="red">'''this takes quite a while with slow internet connections !!'''</font>
  
 
When complete you will get a message at the end like this:
 
When complete you will get a message at the end like this:
Line 45: Line 47:
 
  '''[[SUNScholar/Install DSpace/S04|PREVIOUS - STEP 4]]'''
 
  '''[[SUNScholar/Install DSpace/S04|PREVIOUS - STEP 4]]'''
 
</center>
 
</center>
 +
 +
[[Category:Installation]]

Latest revision as of 10:56, 28 May 2016

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/source

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.

References

PREVIOUS - STEP 4