Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In most cases, creating bundlized versions of a library is as simple as creating a POM file for the library using Felix' new Maven Bundle Plugin. The OSGi headers are non-intrusive. A JAR can be made in such a way that it runs on the Classpath as well as a bundle in an OSGi framework. A set of steps for converting a library to a bundle is also available. In short you:

  1. Set the groupId to:
    Code Block
    xml
    xml
    <groupId>org.apache.felix.commons</groupId>
    
  2. Append "-osgi" to the name of the artifact:
    Code Block
    xml
    xml
    <artifactId>FOO-osgi</artifactId>
    
  3. Set the "packaging" to use the Maven Bundle Plugin:
    Code Block
    xml
    xml
    <packaging>bundle</packaging>
    
  4. Set any configuration options in the Maven Bundle Plugin.

We recommend you read the longer steps for converting a library to a bundle.

Contribution Status

Potential contributions by Felix Meschberger:

...