[
https://issues.apache.org/jira/browse/FELIX-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann updated FELIX-3300:
-------------------------------------
Attachment: FELIX-3300.patch
Proposed patch.
Apparently, the call chains ManifestPlugin.getAnalyzer() ->
Builder.calculateExportsFromContents() and ManifestPlugin.getAnalyzer() ->
BundlePlugin.addMavenInstructions() -> BundlePlugin.addLocalPackages() want to
achieve the same, i.e. set the default export-package instruction. For
consistency the with manifest produced by the {{bundle}} goal, it seems wise to
have the {{manifest}} goal avoid the call to calculateExportsFromContents() in
favor of addLocalPackages(). As a side effect, this avoids the bug in BND that
eventually leads to this annoying warning.
> Avoid warning about superfluous export-package instructions for empty
> directories
> ---------------------------------------------------------------------------------
>
> Key: FELIX-3300
> URL: https://issues.apache.org/jira/browse/FELIX-3300
> Project: Felix
> Issue Type: Improvement
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-2.3.6
> Reporter: Benjamin Bentmann
> Priority: Minor
> Attachments: FELIX-3300.patch
>
>
> Using the plugin's default configuration, its manifest goal produces the
> following warning:
> {noformat}
> [INFO] --- maven-bundle-plugin:2.3.6:manifest (default-cli) @ aether-api ---
> [WARNING] Manifest org.eclipse.aether:aether-api:jar:0.9.0-SNAPSHOT :
> Superfluous export-package instructions: [org, org.eclipse]
> {noformat}
> Note that the mentioned packages contain neither classes nor other resources.
> Explicitly setting the plugin configuration like
> {code:xml}
> <configuration>
> <instructions>
> <Export-Package>org.eclipse.aether.*</Export-Package>
> </instructions>
> </configuration>
> {code}
> appears to be an effective way to prevent the warning.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira