jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "HowtoSpi2Dav" by ScottCytacki
Date Tue, 20 May 2008 15:36:05 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The following page has been changed by ScottCytacki:
http://wiki.apache.org/jackrabbit/HowtoSpi2Dav

------------------------------------------------------------------------------
  
  == Get jcr-server running ==
  To use spi2dav you need to have the [http://jackrabbit.apache.org/jackrabbit-jcr-server.html
"jcr server component"] running.
+  * Add the jcr-1.0.jar to your servlet containers global library folder. For example: cp
~/.m2/repository/javax/jcr/jcr/1.0/jcr-1.0.jar lib/ext/
   * Download the jcr-server war
   * create a folder in your servlet container's (tomcat, jetty, ...) webapps folder.  I used
jackrabbit.
   * uncompress the war into that folder
@@ -29, +30 @@

  }}}
  
  == Access the remote server from a client ==
+ 
+ === get the jars needed ===
+ The jars do not seem to be available for download in binary form, so they must be built:
+  * check out the spi sandbox project from https://svn.apache.org/repos/asf/jackrabbit/sandbox/spi
+  * run "mvn install" (you need maven2 installed for that to work)
+ 
+ === add the dependencies to your maven pom.xml ===
+ {{{
+     <dependency>
+       <groupId>javax.jcr</groupId>
+       <artifactId>jcr</artifactId>
+       <version>1.0</version>
+     </dependency>
+     <dependency>
+     	<groupId>org.apache.jackrabbit</groupId>
+     	<artifactId>jackrabbit-core</artifactId>
+     	<version>1.5-SNAPSHOT</version>
+     </dependency>
+     <dependency>
+         <groupId>org.slf4j</groupId>
+         <artifactId>slf4j-log4j12</artifactId>
+         <version>1.3.0</version>
+     </dependency>
+     <dependency>
+       <groupId>org.apache.jackrabbit</groupId>
+       <artifactId>jackrabbit-spi-spi2dav</artifactId>
+       <version>1.5-SNAPSHOT</version>
+     </dependency>
+     <dependency>
+       <groupId>org.apache.jackrabbit</groupId>
+       <artifactId>jackrabbit-jcr2spi</artifactId>
+       <version>1.5-SNAPSHOT</version>
+     </dependency>    
+ }}}
+ 
+ === write the code to access the repository ===
- This code was figured out based on org.apache.jackrabbit.jcr2spi.JCR2SPIRepositoryStub.java
located in https://svn.apache.org/repos/asf/jackrabbit/sandbox/spi/client
+ This code was figured out based on {{{ org.apache.jackrabbit.jcr2spi.JCR2SPIRepositoryStub
}}} located in {{{ svn.apache.org/repos/asf/jackrabbit/sandbox/spi/client }}}
  
  {{{
  import javax.jcr.Repository;

Mime
View raw message