目前,我有两个地窖节点,在同一组中具有相同的配置。
我在节点 A 中配置了 maven,并在我的网络中配置了一个本地存储库,两个节点都可以访问。为此,我在文件“/karaf/etc/org.ops4j.pax.url.mvn.cfg”中编辑了“org.ops4j.pax.url.mvn.localRepository”。
然后我尝试通过以下命令在集群中安装 Kar 文件:
cluster:kar-install [group] [path_to_kar_file]
所有功能和捆绑软件都安装在 noda A 中,没有问题。但是节点 B 在找到工件时遇到了问题:
CELLAR FEATURE: failed to add repository URL mvn:com.myproject/myproject-feature-cluster/3.5.0-SNAPSHOT/xml/features.
java.io.IOException: Error resolving artifact com.myproject:myproject-feature-cluster:xml:features:3.5.0-SNAPSHOT:
[Could not find artifact com.myproject:myproject-feature-cluster:xml:features:3.5.0-SNAPSHOT in defaultlocal (file:////WL300348/Users/zunigal/eRVS/m2/repository/), Could not find artifact com.myproject:myproject-feature-cluster:xml:features:3.5.0-SNAPSHOT in sonatype.snapshots.deploy (https://oss.sonatype.org/content/repositories/snapshots/),
Could not find artifact com.myproject:myproject-feature-cluster:xml:features:3.5.0-SNAPSHOT in ops4j.sonatype.snapshots.deploy (https://oss.sonatype.org/content/repositories/ops4j-snapshots/),
Could not find artifact com.myproject:myproject-feature-cluster:xml:features:3.5.0-SNAPSHOT in spring-ebr-repository (http://repository.springsource.com/maven/bundles/external/)
我还尝试在 org.ops4j.pax.url.mvn.repositories 列表中添加 localRepository,但没有任何改变。
卡拉夫版本:4.1.5
地窖版本:4.1.3