Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Bundle Parent 36
-
None
Description
By default all versioned packages are exported no matter whether they are conditionalpackages (https://bnd.bndtools.org/instructions/conditionalpackage.html) or not. As conditionalpackages should never be exported the according instruction should be modified to
-exportcontents: ${removeall;${packages;VERSIONED};${packages;CONDITIONAL}}
This says to export all versioned packages except those which are conditionally added
(https://github.com/bndtools/bnd/issues/3721#issuecomment-579026778)
Fixed in https://github.com/apache/sling-parent/commit/f30192da4a69e07fccacc70d6b1ad0db9eff0823.