I work in an OSGi project where we need to export a package to a package, but we do not want to export two specific classes of this package. To give more information, we use a third-party jar that is not an osgi package, so we add this as part of the OSGi package, and in this third-party jar we need to export package "A", but this package A has two specific classes that we donβt intend to be exported. Please give your suggestion on the way to achieve this.
source share