Installing Apache Camel modules into Apache Karaf
Before we can begin to explore how to build Camel-Karaf smart routers, we must first install all the required Camel modules into the Karaf container.
Getting ready
The ingredients of this recipe include the Apache Karaf distribution kit, access to JDK, and Internet connectivity.
How to do it…
First, we add an URL to the Camel feature to our Karaf installation feature repository using the following command:
karaf@root()> feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.12.2/xml/features Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.12.2/xml/features karaf@root()>
Tip
Alternatively, you can use the
feature:repo-add camel 2.12.2
command.Upon adding the feature URL, Karaf will then be ready to install all Apache Camel dependencies. If you'd like to see all of the install targets, issue the
feature:list | grep –i camel
command.The next step is installing the base Camel feature into Karaf. We install a feature by executing...