In bndtools, what creates a Require-Capability header for the runtime?

I have the following bnd file:

Bundle-Version: 1.0.12 Bundle-Activator: abActivator Private-Package: ab -buildpath: osgi.core;version=4.3.0,\ org.apache.felix.bundlerepository;version=1.6.6,\ osgi.cmpn;version=4.3.0.201111022214 -sources: false 

In the generated MANIFEST.MF file:

 Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.6))" 

I don't want this to be ... there is no reason that I can see what it should be. So how do I avoid this?

+6
source share
1 answer

bnd 2.3 automatically adds this. You can disable using -noee=true in your bnd file.

This is generally a good requirement as it expresses the basic JRE requirement of your package. bnd defines the version based on the version of the class files in the package.

+8
source

Source: https://habr.com/ru/post/975301/


All Articles