If I add
<bundle>mvn:org.apache.camel/camel-http4/2.15.1</bundle>
Then I get the following error below.
What is the right way to be able to use camel-http4 from within my blueprint camel routing within Karaf? How should I modify features.xml?
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=social_importer.kar; type=karaf.feature; version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]"; filter:="(&(osgi.identity=social_importer.kar)(type=karaf.feature)(version>=1.0.0.SNAPSHOT)(version<=1.0.0.SNAPSHOT))" [caused by: Unable to resolve social_importer.kar/1.0.0.SNAPSHOT: missing requirement [social_importer.kar/1.0.0.SNAPSHOT] osgi.identity; osgi.identity=org.apache.camel.camel-http4; type=osgi.bundle; version="[2.15.1,2.15.1]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-http4/2.15.1: missing requirement [org.apache.camel.camel-http4/2.15.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=javax.servlet)(version>=2.5.0)(!(version>=4.0.0)))"]]
Thanks, so far I have discovered with your help the following helps, still investigating.
karaf@root()> 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
karaf@root()> feature:install camel-http4
karaf@root()> feature:install camel-http
karaf@root()> feature:install camel-ahc
You can install the Camel components from the karaf shell using
features:install camel-http4
That install all the bundles of the feature needed for using camel-http4. And after doing this once, you can install your own bundles.
If you have your own features.xml file, you can refer to other features with
<feature>camel-http4</feature>
And you may need in the top of your features.xml file to refer to the Camel features, such as Camel does to others here: https://github.com/apache/camel/blob/master/platforms/karaf/features/src/main/resources/features.xml#L20