2013-08-29 58 views
0

我正在使用Jackrabbit 2.6.3並且想要與注入存儲庫的spring jcr集成。春季JCR到最新的jackrabbit集成

<bean id="repository" 
     class="org.springmodules.jcr.jackrabbit.RepositoryFactoryBean"> 
     <!-- normal factory beans params --> 
     <property name="configuration" value="classpath:/jackrabbit-repository.xml" /> 
     <!-- use the target folder which will be cleaned --> 
     <property name="homeDir" value="file:./tmp/repository" /> 
</bean> 

但是,春天jcr版本似乎是相當古老,並尋找它看起來很老的罐子。

[ERROR] Failed to execute goal on project xyz: Could not resolve dependencies for project com.test.xyq:war:2.4.2: The following artifacts could not be resolved: jsr170:jsr170:jar:1.0, jeceira:jeceira:jar:0.1.3, aparzev:doka:jar:0.1, aparzev:commons:jar:0.2, jug:jug-asl:jar:2.0.0: Failure to find jsr170:jsr170:jar:1.0 in nexus/content/groups/ was cached in the local repository, resolution will not be reattempted until the update interval of has elapsed /nexus/content/groups/ or updates are forced -> [Help 1] 

問題:

  1. 你能以其他任何方式我可以注入庫點?

  2. 有沒有關於如何將Spring與JackRabbit整合的文檔。

回答

0

我寫了一篇博文here。這個例子適用於最新的jackrabbit 2.6.4和Spring 3.你應該得到正確的spring-jcr庫,this one適用於我