Requires Git
Requires Java 7
Requires Maven 3
Instructions assume you have a terminal on a Unix like system.
git clone https://github.com/futures/fcrepo4.git cd fcrepo4 MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=1024m" mvn install cd fcrepo-webapp MAVEN_OPTS="-Xmx512m" mvn jetty:run
You should now be able to navigate to http://localhost:8080/rest and see Fedora running.
If you have problems building Fedora 4, you may need to also pass options to the JaCoCo test coverage plugin:
MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=1024m" mvn -Djacoco.agent.it.arg="-XX:MaxPermSize=1024m -Xmx1024m" -Djacoco.agent.ut.arg="-XX:MaxPermSize=256m -Xmx1024m" clean install
Clustering Demo
To join the Fedora cluster, cd to the fcrepo-webapp directory and start Fedora with these clustering options:
$ cd fcrepo-webapp $ MAVEN_OPTS="-Xmx1g -XX:MaxPermSize=512M -Dfcrepo.modeshape.configuration=classpath:config/clustered/repository.json -Dfcrepo.ispn.numOwners=2 -Djava.net.PreferIPv4Stack=true -Djgroups.tcp.address=0.0.0.0 -Djgroups.tcpping.initial_hosts=192.168.0.30[7800]" mvn jetty:run
You should now be able to see content added on other cluster nodes, and add content on your repository and see it show up automatically on other nodes in the cluster.