I am currently looking into improving the OSGi setup of bundles. For package exports I have found the package-info.java to be the best practice (see below):
@org.osgi.annotation.versioning.Version("1.0.0") @org.osgi.annotation.bundle.Export package my.package; Imports are normally computed automatically. Some cases that still need special handling are changes in import range or optional imports. Currently I use this for optional imports: bnd.bnd Import-Package: \ javax.servlet*;resolution:=optional,\ * Is this still best practice or do we have something better? The maven-bundle-plugin makes imports optional if the maven dependency is optional. Is there a way to make the bnd-maven-plugin to behave in the same way? Any better solution? Thanks Christian -- -- Christian Schneider http://www.liquid-reality.de Computer Scientist http://www.adobe.com
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev