2014-01-30 48 views
0

我跟着这个CXF Proxy Example,它按照说明成功运行。将骆驼CXF代理部署到红帽JBoss保险丝

现在我想将CXF Proxy示例部署到JBoss-Fuse中作为OSGI Bundle。我遵循这条指令Deploying the Apache Camel Route。但这个弹出我与这个错误:

JBossFuse:[email protected]> 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:[email protected]> 

我没有改变任何东西。只是用它们的例子。他们有这样对他们的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))) 
+1

'features:list | grep春天' - 你有'骆驼春'安装? 'list | grep春天' - 哪个包版本? – vikingsteve

回答

0

笔者随机与几个版本的尝试在pom.xml替换它,突然它的工作对我来说,当我打以下版本:

<version>2.10.0</version> 

我不知道为什么它为我工作。但是,只是发现我很幸运!