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…

  1. 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 ...

Get Apache Karaf Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.