Hi all,
I have a strange situation, which I think were not present in older
versions of the Maven Bundle Plugin.
Consider a bundle embedding a third party library and export parts of
that library:
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>
the/lib/package;version=1.2.3
</Export-Package>
<Embed-Dependency>
the.lib.artifact
</Embed-Dependency>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
Now, when this bundle is built, I end up with the bundle embedding the
library artifact plus /the/lib/package inlined into the bundle.
Is this by intent ? Can this be prevented ? Or is this a bug somewhere ?
Thanks alot for any hints.
Regards
Felix
PS: An example exhibiting the problem is the Sling Jackrabbit Server
bundle [1]: This embeds the jackrabbit-core.jar library and exports the
o.a.j.core.security.principal package. The library is embedded as a JAR
file but the exported package is inlined -- which is neither expected
nor intended.
[1]
http://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/jackrabbit-server