I am repackaging a new release of a 3rd party product which I have a depencency 
on as an OSGi bundle.  The Apache Felix Maven Bundle Plugin (BND) website does 
a pretty good job of explaining how to do this but a big issue that was having 
and found the answer to is at 
http://stackoverflow.com/questions/1378492/embedding-jars-into-the-osgi-bundle-with-maven-bundle-plugin,
 which is how to avoid unresolved errors (for packages that will not actually 
be used at runtime) during the build if all dependencies are not imported, and 
at runtime if they are, by adding 
"<Import-Package>*;resolution:=optional<Import-Package>" to the configuration.

I think it would be extremely helpful to other users to include this in the 
documentation for the plugin.


Reply via email to