Coming in Apache Karaf 4.3.1: features JSON

The next Apache Karaf release (4.3.1) will support features definition in JSON format.

Up to now, only XML was supported. It’s now possible to use either XML or JSON format.

For instance, the following features repository using XML format:

<features name="my-features-repo" xmlns="">
  <feature name="my-feature" version="1.0-SNAPSHOT">

can now be defined using JSON format:

  "name": "my-features-repo",
  "feature": [
      "name": "my-feature",
      "version": "1.0-SNAPSHOT",
      "feature": [
        { "name": "scheduler" }
      "bundle": [
        { "location": "mvn:org.example.bundle/my-bundle/1.0-SNAPSHOT" }

In the Karaf runtime (or packaging), you can mix XML and JSON features repositories (it’s the same representation internally).

This is a preparation step for the “new” launcher and approach we are working for Karaf 5.

You May Also Like

About the Author: jbonofre

ASF Member, PMC for Apache Karaf, PMC for Apache ServiceMix, PMC for Apache Archiva, PMC for Apache Felix, PMC for Apache Camel, PMC for Apache Syncope, PMC for Apache Beam, PMC for Apache CarbonData, PMC for Apache Bahir, PMC for Apache Brooklyn, PMC for Apache Falcon, PMC for Apache Guacamole, PMC for Apache Lens, Committer for Apache ActiveMQ and much more ! Twitter: jbonofre IRC: jbonofre on #servicemix,#karaf,#camel,#cxf on Freenode