Maven Bundle Plugin (BND) commented on by Werner Thiemann (Aug 22, 2007).

Comment:

Seems I can't change this wiki page directly, so I put the changes in here and hope Richard or someone who has the rights will include the information I got from the mailing list. Afterwards this comment can be removed.

Changes to the pom configuration

The <repository> and <plugin-repository> eintries in the example poms can be removed. As of apache.felix:1.0.0 the plugin isn't longer in the incubation repository but - due to synchronisation - is part of the maven central repository itself.

Keeping those entries will hinder the download of the new version and so the following goals are not accesible:

Goals

For command line exection of a goal please execute:

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, as the underlying BND tool
continues to be improved - for the latest see http://aqute.biz/Code/Bnd

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

(Thanks to Stuart McCulloch for providing me with this information)

Reply via email to