0

我正在使用 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>

但是 spring jcr 版本似乎很旧,并且似乎在寻找非常旧的 jars。

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

4

1 回答 1

0

我在这里写了一篇博文。这个例子适用于最新的 jackrabbit 2.6.4 和 Spring 3。你应该得到正确的 spring-jcr 库,这个对我有用

于 2013-12-17T08:45:40.443 回答