【发布时间】:2015-05-06 12:45:25
【问题描述】:
尝试在 Karaf 3.0.3 上安装分布式 cxf 1.6.0 时,我遇到了一个奇怪的依赖问题。
谈到 Karaf 时,我仍在学习教程,所以我不知道我缺少什么。 2 小时的谷歌搜索带来了一点乐趣。
我尝试从cxf dosgi page 安装简单的欢迎服务,但尝试安装 cxf 功能让我陷入了僵局。
$ feature:repo-add cxf-dosgi 1.6.0
$ feature:install -v cxf
...
Found installed bundle: org.apache.cxf.cxf-rt-features-clustering [1101]
Found installed bundle: org.apache.cxf.bundle [1102]
Error executing command: Can't install feature cxf/0.0.0:
Could not start bundle mvn:org.apache.cxf/cxf-bundle-compatible/2.7.8 in feature(s) cxf-2.7.8: Unresolved constraint in bundle org.apache.cxf.bundle [1102]: Unable to resolve 1102.0: missing requirement [1102.0] osgi.wiring.bundle; (osgi.wiring.bundle=org.springframework.beans)
我到底错过了什么?我看到缺少 spring 依赖项,但我该如何修复它。我似乎在任何地方都找不到那个捆绑包,为什么 karaf 不抓住它?
【问题讨论】:
-
cxf 1.6 不是很旧吗?
-
是的,但 cxf-dosgi 1.6 似乎是较新的版本之一。
标签: cxf apache-karaf dosgi