wiki:PatchedJackrabbit

Install source for jackrabbit-jcr-server and jackrabbit-webapp (plus dependencies)

Plutext-Server uses JackRabbit? as its repository. Some of the JackRabbit? modules need to be modified. These instructions set up Eclipse projects for the relevant Jackrabbit modules. (Patching is done later.)

Prerequisites:

  • A subversion client
  • Maven 2 plugin for eclipse

Steps:

svn checkout  http://svn.apache.org/repos/asf/jackrabbit/tags/1.3.3 jackrabbit

cd jackrabbit

mvn eclipse:eclipse

From Eclipse, File > Import > Existing projects into workspace

Tick the two we want (-jcr-server, -webapp), and check copy into workspace.

In Eclipse, click Maven > Enable Dependency Management

You can right click > Build Path > Configure Build Path:

  • on the Projects tab, remove the listed projects
  • on the Libraries tab, remove the M2_REPO entries

(Note: I prefer above to setting Window > Preferences > Java > Build Path > Classpath Variables > M2_REPO=~/.m2/repository)

jackrabbit-webapp pom.xml needs the following dependency added:

<dependency>

<groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-api</artifactId> <version>1.4-SNAPSHOT</version>

</dependency>

(Note: these are also necessary for the moment, though the patch step later takes care of them:

org.apache.jackrabbit.j2ee.JCRWebdavServerServlet & SimpleWebdavServlet?: fix the path to org.apache.jackrabbit.server.AbstractWebdavServlet?

org.apache.jackrabbit.server.io.IOUtil: set UNDEFINED_TIME back to -1

)

Eclipse should now be happy.