All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
Old Release
This documentation relates to an old version of DSpace, version 3.x. Looking for another version? See all documentation.
This DSpace release is end-of-life and is no longer supported.
Contents
The directions for previous DSpace (from 1.5.x up to 1.8.x) differ slightly. See Rebuild DSpace
Directories:
[dspace]
- The DSpace Installation directory[dspace-source]/dspace/
- The DSpace Assembly project within the DSpace source code[dspace-source]/dspace/target/dspace-[version]-build.dir/
- The directory where the DSpace Assembly project builds a new installation package for DSpace.[Tomcat]/webapps/
(Mac OSX Server: /library/jboss/3.2/deploy
)(*Exception – Changes to Messages.properties always requires a rebuild!)
[Tomcat]/bin/shutdown.sh
[Tomcat]/bin/startup.sh
cd [dspace-source]/dspace/
mvn package
(recompiles all DSpace code and rebuilds the DSpace installation package)cd [dspace-source]/dspace/target/dspace-[version]-build.dir/
(move into the target directory where DSpace has been rebuilt)ant update
(updates your DSpace install based on the newly built content in your targetdirectory)ant update_webapps
(which just copies over web application changes to your [dspace]
)[dspace]/webapps/
directory, you will also need to copy your final web application(s) into your [Tomcat]/webapps/
directory.cp -R [dspace]/webapps/ [Tomcat]/webapps/
cp build/*.war /library/jboss/3.2/deploy
cd [dspace-source]/
mvn clean package
(removes all old compiled code and recompiles all DSpace code and rebuilds the DSpace installation package)cd [dspace-source]/dspace/target/dspace-[version]-build.dir/
(move into the target directory where DSpace has been rebuilt)ant update
(updates your DSpace install based on the newly built content in your target directory)ant update_webapps
(which just copies over web application changes to your [dspace]
)[dspace]/webapps/
directory, you will also need to copy your final web application(s) into your [Tomcat]/webapps/
directory.cp -R [dspace]/webapps/ [Tomcat]/webapps/
cp build/*.war /library/jboss/3.2/deploy
[Tomcat]/work/Catalina/localhost
[Tomcat]/bin/startup.sh
It doesn't happen often that someone needs all of the DSpace modules. Most prominent example are the web interfaces - most people need either JSPUI or XMLUI, but not both. You may cut down on build time by excluding unneeded modules. But beware, some modules have hidden interdependencies, so it's not always possible to exclude all modules. If a build fails, it may be for this reason. In that case try the full build again.
To build dspace without the JSPUI and LNI modules ("profiles" in Maven terminology), add this option to the Maven command:
mvn package -P !dspace-jspui,!dspace-lni
The full list of DSpace modules that you may choose to exclude from the build include: