You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Tuomas Kiviaho (Commented) (JIRA)" <ji...@apache.org> on 2012/01/26 09:13:39 UTC

[jira] [Commented] (FELIX-2809) maven-bundle-plugin should automatically add "resolution:=optional" to imported packages that are in optional maven dependencies.

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

Tuomas Kiviaho commented on FELIX-2809:
---------------------------------------

Just reporting my observations here even though the issue has been resolved long time ago. 

I believe that there are no such things as transitively included optional dependencies, so the latter of the patches wouldn't have an effect that I think was intended.

More of a problem is a scenario where Import-Packages ends up with references to optional dependencies of transitive dependencies. resteasy-jaws for instance contains optional TJWS dependency plus classes referencing to it. There is no way that BND could separate packages of these unwanted classes from packages of required classes.

It could be possible to seek though the dependency tree and gather optional dependencies of transitive dependencies, pass them to BND as well in such manner that generated possibility of "split packages" issue is taken care of. Later on packages of gathered dependencies can be removed from list actual packages of project itself and it's transitive dependencies (provided that aftifact files of each required dependency are present)
                
> maven-bundle-plugin should automatically add "resolution:=optional" to imported packages that are in optional maven dependencies. 
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2809
>                 URL: https://issues.apache.org/jira/browse/FELIX-2809
>             Project: Felix
>          Issue Type: Improvement
>            Reporter: Hiram Chirino
>            Assignee: Hiram Chirino
>             Fix For: maven-bundle-plugin-2.3.4
>
>


--
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