I have a very simple pom.xml where I'm trying to wrap a non-OSGi jar using the bnd-maven-plugin where the only dependency of the pom is the non-osgi jar with exclusion of all dependencies. I've tried the following two approaches:
-includeresource: non-osgi-jar-*.jar;lib:=true
and
But for both approaches, it does not generate the Provide-Capability headers for osgi.serviceloader;osgi.serviceloader
What would be the correct approach so that the bnd-maven-plugin detects that the embedded jar contains META-INF/services files and generate the correct headers in the osgi-wrapped bundle?