O'Reilly logo

OSGi and Apache Felix 3.0 by Walid Joseph Gédéon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - creating the iPOJO metadata

So let's start by describing the component in iPOJO terms. The task consists of the addition of the meta.xml descriptor under src/main/ipojo of the bookshelf-inventory-impl-mock project and the modification of the POM to configure the maven-ipojo-plugin.

The modification of the POM is usually the step that's forgotten. So let's get that out of the way first.

Update the POM

In our case, as we're moving the component from using a bundle activator to declaring itself using iPOJO, we'll need to do two things:

  • Remove the bundle activator header from the manifest
  • Add support for iPOJO in the Maven build cycle

Edit the pom.xml file and go to the build plugins section. In the maven-bundle-plugin configuration, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required