Thursday, December 26, 2013

[Maven Bundle Plugin - BND] How to copy resources from jars to bundle

When we use Maven Bundle plugin to create an OSGi bundle from a jar, we might want to copy certain resource files from jar to OSGi bundle.

We can use <Include-Resource> element to do this. Recently I used it here.

In this example, we have copied 3 files from openjpa-2.2.0.jar. This copies the files to the same path inside the OSGi bundle.

No comments:

Post a Comment