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 JoStorset
Date Sat, 01 Dec 2007 16:14:15 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 JoStorset:
http://wiki.apache.org/jackrabbit/QuestionsAndAnswers

The comment on the change is:
jcr is in the central maven repo..

------------------------------------------------------------------------------
  There is a way for accessing, bypassing JCR pure std api, at lucene Index ?
  
  == How do I use Jackrabbit in MY projects with Maven 2 ?  ==
- If you are using maven 2, happily the releases of Jackrabbit are kept in ibiblio.
+ If you are using maven 2, happily the releases of Jackrabbit are kept in the central maven
repo.
  Put the following into your projects pom.xml:
  {{{
         <dependency>
             <groupId>org.apache.jackrabbit</groupId>
             <artifactId>jackrabbit-core</artifactId>
-            <version>1.0.1</version>
+            <version>1.3.3</version>
         </dependency>
  }}}
+ As Jackrabbit depends on JCR (of course) you will also need to add: 
- 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:
  {{{
+     <dependency>
+       <groupId>javax.jcr</groupId>
-   <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>
+       <artifactId>jcr</artifactId>
-   <version>1.0</version>
+       <version>1.0</version>
- </project>
+     </dependency>
  }}}
  
  == Syntax errors in CND files ==

Mime
View raw message