如果我添加如何將camel-http4添加到Karaf features.xml文件?
<bundle>mvn:org.apache.camel/camel-http4/2.15.1</bundle>
然後我得到下面的下面的錯誤。
什麼是正確的方式能夠使用camel-http4從我的藍圖駱駝路由內卡拉夫?我應該如何修改features.xml?
org.osgi.service.resolver.ResolutionException:無法解析根目錄:缺少需求[root] osgi.identity; osgi.identity = social_importer.kar;鍵入= karaf.feature;版本= 「[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]」;過濾器:=「(&(osgi.identity = social_importer.kar)(type = karaf.feature)(version> = 1.0.0.SNAPSHOT)(version < = 1.0.0.SNAPSHOT))」[引起:無法解決social_importer.kar/1.0.0.SNAPSHOT:缺少需求[social_importer.kar/1.0.0.SNAPSHOT] osgi.identity; osgi.identity = org.apache.camel.camel-http4;鍵入= osgi.bundle;版本= 「[2.15.1,2.15.1]」;解析:=必需[由:無法解析org.apache.camel.camel-http4/2.15.1:缺少需求[org.apache.camel.camel-http4/2.15.1] osgi.wiring.package;濾波器:= 「(&(osgi.wiring.package =的javax.servlet)(版本> = 2.5.0)((版本> = 4.0.0))!)」]]
謝謝,所以遠遠我已經發現,在你的幫助下,以下幫助,仍在調查。
[email protected]()> feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.15.2/xml/features
Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.15.2/xml/features
[email protected]()> feature:install camel-http4
[email protected]()> feature:install camel-http
[email protected]()> feature:install camel-ahc
在卡拉夫版本3.0.3 - 功能:安裝駱駝http4不起作用。 karaf @ root()>功能:安裝camel-http4 執行命令時出錯:沒有匹配camel-http4/0.0.0的功能 在Karaf 4中它默默地失敗。也在卡拉夫2失敗。 (Windows) – Phil
我剛剛發現,如果我做功能:addurl https://raw.githubusercontent.com/apache/camel/master/platforms/karaf/features/src/main/resources/features.xml它幫助,而不是,我需要真正的網址....不是git之一 – Phil
您需要在卡拉夫安裝駱駝。這裏有一些文檔:http://camel.apache.org/karaf.html - 如果你google的話,還有很多其他的文檔 –