Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For DSpace 6.x, you can use Java 8.
For DSpace 5.x, you should be using Java 7. Unfortunately even disabling `doclint` on these branches seems to not be enough (See 

Jira
serverDuraSpace JIRA
serverIdc815ca92-fd23-34c2-8fe3-956808caf8c5
keyDS-3154
See https://github.com/DSpace/DSpace/issues/6509), so you really do need to find an old version of Java 7 around somewhere.

  • If you are using a recent version of Ubuntu

  • (e.g. 16.04LTS or later)
  • , OpenJDK 7 is harder and harder to find. However, there are still some PPAs that have unmaintained copies (i.e. no security patches). This is good enough for installing on something like vagrant-dspace just do perform the release. Here's a PPA that has worked (as of July 2017):

    Code Block
    # Install the add-apt-repository command (if not available)
    sudo apt install software-properties-common
    # Add a PPA that has old 7 versions of OpenJDK
    sudo add-apt-repository ppa:openjdk-r/ppa
    sudo apt-get update
    # Install OpenJDK 7
    sudo apt-get install openjdk-7-jdk
    # Switch which Java alternative is in use (and select OpenJDK 7)
    # OBVIOUSLY, YOU SHOULD MAKE SURE TO SWITCH BACK AFTER THE RELEASE IS COMPLETE
    update-alternatives --config java
    # Check that the settings are now correct
    java -version


Use Maven 3 or above

Make sure you're using a recent version of Maven. As of this writing, Maven 3.0.5 is known to work.

For more information see the Prerequisites section of the Sonatype Maven Repository Usage Guide

For DSpace 7.x, you must use Maven 3.3 or above.  However, Maven 3.5.4 or above is highly recommended, as it's necessary to regenerate the LICENSES_THIRD_PARTY file (see notes below)

...

...