Versions Compared

Key

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

...

Using Maven2, build and install the maven-bundle-plugin by issuing the following Maven2 command in the project directory that was created as a result of the previous step.

No Format
$ mvn install

Goals

The maven-bundle-plugin also provides various functionality via some new Maven goals. Command-line execution of a goal is performed as follows:

No Format

mvn org.apache.felix:maven-bundle-plugin:GOAL

Where GOAL is one of the following:

  • bundle - build an OSGi bundle jar
    • options: supportedProjectTypes defaults to "jar","bundle"
  • bundleall - build an OSGi bundle jar for all transitive dependencies
    • options: supportedProjectTypes defaults to "jar","bundle"
  • wrap - as above, but limited to the first level of dependencies
    • options: supportedProjectTypes defaults to "jar","bundle"
  • manifest - create an OSGi manifest for the current project
    • options: manifestLocation defaults to ${project.build.outputDirectory}/META-INF
    • options: supportedProjectTypes defaults to "jar","bundle"

There are also new instructions available from the underlying BND tool, which continues to be improved independently; for the latest see http://aqute.biz/Code/Bnd.

The default goal bundle will be initialized by setting the <packaging> entry to "bundle".

Feedback

Subscribe to the Felix users mailing list by sending a message to users-subscribe@felix.apache.org; after subscribing, email questions or feedback to users@felix.apache.org.