java - How to add import-packages from a specific bundle version in OSGi -
my project has 2 osgi bundles (a , b) need use different versions of javax.activation
— requires version 1.1.0, while b requires 1.1.1.
by default in aem 5.6.1, there bundle installed exports version 1.1.1, bundle using. in order make use 1.1.0 instaed, used boot delegation javax.activation jre 7 system bundle 1.1.0. setting using sling.properties file in aem 5.6.1.
if give version javax.activation greater 1.1.1 in sling.properties file, both , b using system version (even though version of import-packages specified in manifest.mf
file); if give version less 1.1.1, both bundles use version provided aem.
how can configure bundles use different versions of javax.activation bundle bundle b?
if want use 1.1.0 version in bundle a, should specify in a's manifest file:
import-package: javax.activation;version="[1.1.0,1.1.0]"
for bundle b manifest be:
import-package: javax.activation;version="[1.1.1,1.1.1]"
Comments
Post a Comment