...
Clone the DfR repository from GitHub
Code Block git clone https://github.com/duraspace/dfr.git
Set environment variables
Code Block export JAVA_OPTS="-XX:MaxPermSize=256m" export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=1024m"
- Configure Maven2 using your preferred method for configuring its properties
Add tomcat user to $M2_HOME/conf/settings.xml
No Format <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository/> <interactiveMode/> <usePluginRegistry/> <offline/> <pluginGroups/> <servers/> <mirrors/> <proxies/> <profiles> <profile> <id>ocs-integration-test</id> <activation> <activeByDefault>false</activeByDefault> </activation> <properties> <fedora.baseurl>http://dfr.duracloud.org:8080/fedora</fedora.baseurl> <fedora.password>changeme!</fedora.password> <duracloud.password>changeme!</duracloud.password> </properties> </profile> </profiles> <activeProfiles/> </settings>
- Build
From top of source tree
Code Block mvn clean install
- Configure Tomcat Manager (for deployment)
Add to $CATALINA_HOME/conf/tomcat-users.xml
No Format <tomcat-users> <role rolename="manager"/> <role rolename="admin"/> <user username="[ANY-USERNAME]" password="[ANY-PASSWORD]" roles="admin,manager"/> </tomcat-users>
Start tomcat
Code Block $CATALINA_HOME/bin/startup.sh
Use the Tomcat Manager application to deploy the dfr-webapp.war
...