Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected maven command to use

...

  1. Log on to the server DSpace is running on (e.g. ssh). Make sure to login as the user who initially installed DSpace!
  2. Wiki Markup
    Open a command prompt (if you don't have one already), and {{cd \[dspace-source\]/dspace/}}
  3. mvn buildpackage (recompiles all DSpace code and rebuilds the DSpace installation package)
  4. Wiki Markup
    {{cd \[dspace-source\]/dspace/target/dspace-\[version\]-build.dir/}} (move into the _target_ directory where DSpace has been rebuilt)
  5. ant update (updates your DSpace install based on the newly built content in your target directory)
    • Wiki Markup
      Alternatively, if you do not need to reinstall JAR files, you could instead run {{ant update_webapps}} (which just copies over web application changes to your {{\[dspace\]}})
  6. Wiki Markup
    If you do not have Tomcat pointing at your {{\[dspace\]/webapps/}} directory, you will also need to copy your final web application(s) into your {{\[Tomcat\]/webapps/}} directory.
    • Wiki Markup
      {{cp \-R \[dspace\]/webapps/ \[Tomcat\]/webapps/}}
    • (For Mac OS X Server) cp build/*.war /library/jboss/3.2/deploy
  7. Test your changes in DSpace

...

  1. Log on to the server DSpace is running on (e.g. ssh). Make sure to log in as the user who initially installed DSpace!
  2. Wiki Markup
    Open a command prompt (if you don't have one already), and {{cd \[dspace-source\]/dspace/}}
  3. mvn clean buildpackage (removes all old compiled code and recompiles all DSpace code and rebuilds the DSpace installation package)
  4. Wiki Markup
    {{cd \[dspace-source\]/dspace/target/dspace-\[version\]-build.dir/}} (move into the _target_ directory where DSpace has been rebuilt)
  5. ant update (updates your DSpace install based on the newly built content in your target directory)
    • Wiki Markup
      Alternatively, if you do not need to reinstall JAR files, you could instead run {{ant update_webapps}} (which just copies over web application changes to your {{\[dspace\]}})
  6. Wiki Markup
    If you do not have Tomcat pointing at your {{\[dspace\]/webapps/}} directory, you will also need to copy your final web application(s) into your {{\[Tomcat\]/webapps/}} directory.
    • Wiki Markup
      {{cp \-R \[dspace\]/webapps/ \[Tomcat\]/webapps/}}
    • (For Mac OS X Server) cp build/*.war /library/jboss/3.2/deploy
  7. Test changes in DSpace
    • Wiki Markup
      To force Tomcat to recompile everything, you may also wish to remove any DSpace related web application directories created in {{\[Tomcat\]/work/Catalina/localhost}}
  8. Start Tomcat
    • Wiki Markup
      (Linux / OS X / Solaris) {{\[Tomcat\]/bin/startup.sh}}
    • (Mac OS X Server) Use Server Admin to start Tomcat ("Application Server")
    • (Windows) Use Tomcat Service Monitor (in Notification Area) to start Tomcat
  9. Test your changes in DSpace