Embedding JARs into the OSGi bundle with maven-bundle-plugin

Posted by Ivan Dubrov on Stack Overflow See other posts from Stack Overflow or by Ivan Dubrov
Published on 2009-09-04T10:45:25Z Indexed on 2010/04/29 14:47 UTC
Read the original article Hit count: 556

Filed under:
|
|
|

I’m trying to embed some JARs into single OSGi bundle using the feature of maven-bundle-plugin

The thing that worries me is that all packages of embedded JARs are put into the Import-Package header of the generated MANIFEST.MF.

If I specify explicitly to use only the packages I need, like in the following snippet:

Import-Package: org.osgi.framework

The build fails with BND error (unresolved references).

So, the question here is how can I build the bundle with embedded JARs with "Import-Package" header I need?

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about osgi