我已经跟踪了这个CXF代理示例,并如前所述成功地运行了它。
现在,我想将CXF代理示例部署到JBoss中,作为OSGI。我遵循这条指令部署Apache Camel路由。但是这个错误让我大吃一惊:
JBossFuse:admin@root> install -s mvn:org.apache.camel/camel-example-cxf-proxy/2.12.2
Bundle ID: 281
Error executing command: Error installing bundles:
Unable to start bundle mvn:org.apache.camel/camel-example-cxf-proxy/2.12.2:
Unresolved constraint in bundle org.apache.camel.camel-example-cxf-proxy [281]: Unable
to resolve 281.0: missing requirement [281.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.camel.spring)(version>=2.12.0)(!(version>=2.13.0)))
JBossFuse:admin@root> 我什么都没改变。只是以身作则而已。他们的pom.xml上有这个
<parent>
<groupId>org.apache.camel</groupId>
<artifactId>examples</artifactId>
<version>2.12.2</version>
</parent>我尝试过将版本更改为2.9.0.fuse-70-097,但错误是相同的(只是修改了版本号)。
osgi.wiring.package; (&(osgi.wiring.package=org.apache.camel.spring)
(version>=2.9.0)(!(version>=2.10.0)))发布于 2014-02-05 07:50:36
通过在pom.xml中替换它,我随机尝试了几个版本,当我点击以下版本时,它突然对我起了作用:
<version>2.10.0</version>我不知道为什么对我有用。但是,我觉得我很幸运!
https://stackoverflow.com/questions/21451243
复制相似问题