concept Apache Felix Bundle Plugin in category spring

appears as: Apache Felix Bundle Plugin, The Apache Felix Bundle Plugin
Spring Dynamic Modules in Action

This is an excerpt from Manning's book Spring Dynamic Modules in Action.

B.3. Using the Apache Felix Bundle Plugin

The Apache Felix Bundle Plugin for Maven 2 builds on top of Bnd to package Maven projects as OSGi bundles. We already used this plug-in in chapter 3 to package our first Spring DM bundles and in chapter 6 to illustrate the OSGi-ification of third-party libraries. You can download the plug-in and access its documentation on its website: http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html.

The most common way to use the Apache Felix Bundle Plugin is to change the packaging of the target Maven 2 project and declare the plug-in in the build/plugins section of the POM. Listing B.3 shows this basic setup for the domain module of our sample project.

Listing B.3. Basic setup for the Apache Felix Bundle Plugin