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

From Libopedia
Jump to navigation Jump to search
m (Text replacement - "{{SUNScholar}}" to "")
m
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<center>
 
<center>
  '''[[SUNScholar/Install DSpace|Back to Index]]'''
+
  '''[[SUNScholar/Install DSpace/S06|NEXT - STEP 6]]'''
 
</center>
 
</center>
  
 +
==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
==Step 5. Maven packages installation==
 
Make sure we have the right file permissions for a build.
 
  sudo chown dspace.dspace -R /home/dspace
 
  
 
Change to the source folder as follows:
 
Change to the source folder as follows:
  
  cd /home/dspace/<u>[[SUNScholar/Install_DSpace/S03#Step_3.2|source]]</u>
+
  cd $HOME/{{Source}}
  
Type the following to download the maven2 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.''
  
<font color="red">'''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.'''</font>
+
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>
 
 
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:
 
When complete you will get a message at the end like this:
Line 36: Line 32:
 
[INFO] ------------------------------------------------------------------------
 
[INFO] ------------------------------------------------------------------------
 
</pre>
 
</pre>
 +
===Troubleshooting===
 +
''If your [[SUNScholar/Prepare_Ubuntu/S04|maven proxy settings]] are ok and you still get download errors, then try the following:''
 +
mvn install
 +
 +
<font color="red">'''If nothing starts downloading or you get download errors, then check your [[SUNScholar/Prepare_Ubuntu/S04|maven config file for proxy settings]] or ask for an open connection to the internet for your server from your central IT department.'''</font>
 +
 +
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===
 +
*https://wiki.duraspace.org/display/DSPACE/Maven+Project+Consolidation
 +
*https://wiki.duraspace.org/display/DSPACE/Set+Maven+Web+Proxy+Server+Settings
 +
*http://mvnrepository.com/artifact/org.dspace
  
  '''[[SUNScholar/Install DSpace/S04|PREVIOUS]]'''
+
<center>
 +
  '''[[SUNScholar/Install DSpace/S04|PREVIOUS - STEP 4]]'''
 +
</center>
  
'''[[SUNScholar/Install DSpace/S06|NEXT]]'''
+
[[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