[ 
https://issues.apache.org/jira/browse/FELIX-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581448#action_12581448
 ] 

Stuart McCulloch commented on FELIX-336:
----------------------------------------

FYI, the recommended "maven" way of doing that would be to create a new pom for 
the minijar produced artifact. That way it can be versioned and released 
independently. You would then use another pom that took the minijar produced 
artifact (as a dependency) and wrapped it up as a bundle. This approach 
requires no changes to the bundleplugin.

> Add support for optimization and obfuscation of bundle contents
> ---------------------------------------------------------------
>
>                 Key: FELIX-336
>                 URL: https://issues.apache.org/jira/browse/FELIX-336
>             Project: Felix
>          Issue Type: New Feature
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.2.0, maven-bundle-plugin-1.2.1, 
> maven-bundle-plugin-1.4.0
>            Reporter: Stuart McCulloch
>            Priority: Minor
>
> Suggestion from felix mailing list: it would be useful if the bundle-plugin 
> could optimize the contents of the bundle (ie. discard unnecessary internal 
> contents) and possibly perform some obfuscation. Ideally we wouldn't want to 
> discard classes from exported packages as that would lead to split-packages...
> Currently, it's possible to use the minijar plugin to optimize the bundle, 
> but this could discard exported classes as it has no OSGi knowledge.
> This issue will be used to collect together designs and opinions on baking 
> such support into the bundle-plugin compared to keeping it separate.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to