Spring JCR到最新的jackrabbit集成

时间:2013-08-29 09:56:04

标签: jackrabbit jcr

我正在使用Jackrabbit 2.6.3并希望与spring jcr集成以注入存储库。

<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集成的文档。

1 个答案:

答案 0 :(得分:0)

我写了一篇博文here。这个例子适用于最新的jackrabbit 2.6.4和Spring 3.你应该得到正确的spring-jcr库,this one适合我