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 "QuestionsAndAnswers" by Michael Neale
Date Wed, 06 Sep 2006 09:38:13 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 Michael Neale:
http://wiki.apache.org/jackrabbit/QuestionsAndAnswers

------------------------------------------------------------------------------
  
  There is a way for accessing, bypassing JCR pure std api, at lucene Index ?
  
- == Using Jackrabbit with Maven 2   ==
+ == Using Jackrabbit in YOUR projects with Maven 2   ==
  If you are using maven 2, happily the releases of Jackrabbit are kept in ibiblio.
  Put the following into your projects pom.xml:
  {{{
@@ -60, +60 @@

         </dependency>
  }}}
  As Jackrabbit depends on JCR (of course) you will also need to install JCR into your local
repository so it can be resolved.
+ You can manually import it (a hassle) or you can do the following: 
+ In your projects pom.xml, you can refer to a repository local to your project like the following:
+ {{{
+   <repositories>
  
+     <repository>
+ 
+       <id>basedir</id>
+ 
+       <url>file://${basedir}/../repository</url>
+ 
+     </repository>
+ 
+   </repositories> 
+ }}}
+ This will set up a directory repository one level up from where you project is (modify as
necessary).
+ You then put the jcr lib in ../repository/jsr-170/jcr/1.0/jcr-1.0.jar.
+ Finally, you need to have a pom.xml for the jcr jar itself (in the same directory as the
jar), this has the content of: 
+ {{{
+ <project>
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>jsr-170</groupId>
+   <artifactId>jcr</artifactId>
+   <version>1.0</version>
+ </project>
+ }}}
+ 

Mime
View raw message