Developing Active Fedora 8 with Fedora 4

Prerequisites

  1. git

    $ brew install git
    or
    $ apt-get install git

     

  2. Java 1.7

    See http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html#JDK7

  3. Maven 3 (for building Fedora 4 from source)

    $ brew install maven
    or
    $ apt-get install maven

     

  4. RVM

    $ curl -sSL https://get.rvm.io | bash -s stable

  5. Ruby 2.0

    $ rvm install 2.0

Active Fedora 8

  1. Download the fedora-4 branch of Active Fedora and install dependencies

    $ git clone https://github.com/projecthydra/active_fedora.git
    $ cd active_fedora
    $ git checkout fedora-4
    $ bundle install

  2. Download and setup Jetty

    $ rake jetty:unzip
    $ rake jetty:start

Fedora 4

To use a version of Fedora 4 newer than the one included in Hydra-Jetty, either download a snapshot build, or build from source. Once you have an updated WAR file, deploy to Jetty and restart.

Snapshot builds

See https://oss.sonatype.org/index.html#nexus-search;gav~org.fcrepo~fcrepo-webapp

Build from source

$ git clone https://github.com/futures/fcrepo4.git
$ cd fcrepo4
$ MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=1024m" mvn clean install

Note: if you have problems building Fedora 4, you may need to add additional options (see the README file at https://github.com/futures/fcrepo4).

The new WAR file will be in fcrepo-webapp/target/fcrepo-webapp-4.0.0-alpha-6-SNAPSHOT.war.

Deploy new WAR file and restart Jetty

$ cp fcrepo-webapp-4.0.0-alpha-6-SNAPSHOT.war /path/to/active_fedora/jetty/webapps/fcrepo-webapp-4.0.0-alpha-5.war
$ cd /path/to/active_fedora
$ rake jetty:stop
$ rake jetty:start