I want to exclude some packages from copying when creating an OSGi bundle using maven bundle plugin.
I used !package name
in the export section. But since I'm using @openejb-core-${openejb.version}.jar!/**
, in the include-resource section that package gets copied to the bundle.
How can I avoid copying a particular package or set of packages using maven bundle plugin?
I can use names in resource section, but I'd rather not list them one by one.
Typically your build section of an osgi bundle looks like this:
See also http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html