[ https://issues.apache.org/jira/browse/SLING-7575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16476448#comment-16476448 ]
Konrad Windszus edited comment on SLING-7575 at 5/15/18 8:52 PM: ----------------------------------------------------------------- I think that bnd will always add packages within the bundle to either {{Export-Package}} or {{Private-Package}}, so that all packages within the bundle are listed in either of those two headers. Although not that useful for other bundles, I think the {{Private-Package}} does not do any harm. Why do you want to remove non-exported packages from the manifest? was (Author: kwin): I think that bnd will always add packages within the bundle to either {{Export-Package}} or {{Private-Package}}, so that all packages within the bundle are listed in either of those two instructions. Although not that useful for other bundles, I think the Private-Package does not do any harm. Why do you want to remove non-exported packages from the manifest? > Define common instructions for bnd-maven-plugin > ----------------------------------------------- > > Key: SLING-7575 > URL: https://issues.apache.org/jira/browse/SLING-7575 > Project: Sling > Issue Type: Improvement > Components: General > Affects Versions: Parent 33 > Reporter: Konrad Windszus > Assignee: Konrad Windszus > Priority: Major > Fix For: Parent 34 > > > Once [https://github.com/bndtools/bnd/issues/2265] is fixed and released in > {{bnd-maven-plugin}} 4.0 we should upgrade to that version and make sure to > define all the instructions common to all Sling bundles in the parameter > {{bnd}} of the parent. Those instructions should include > # Bundle-Category: sling > # Bundle-Description: ${project.description} > # Bundle-DocURL: https://sling.apache.org|https://sling.apache.org/ > # Bundle-License: Apache License, Version 2.0 > # Bundle-Vendor: The Apache Software Foundation > # -exportcontents: > ${removeall;${packages;VERSIONED};${packages;CONDITIONAL}}, this is to by > default export all versioned packages, except for the ones which are > conditionally included, compare with > [https://github.com/bndtools/bnd/issues/2131] > # -snapshot: ${tstamp;yyyyMMddHHmmssSSS} (compare with > [https://www.mail-archive.com/dev@sling.apache.org/msg76177.html]) -- This message was sent by Atlassian JIRA (v7.6.3#76005)