2014-01-30 39 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> 

我不知道爲什麼它爲我工作。但是,只是發現我很幸運!