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

Alexander Klimetschek commented on FELIX-2016:
----------------------------------------------

I agree, that behavior is completely different from what you expect when seeing 
it and reading the documentation.

I think "Embed-Transitive" can be dropped (it seems quite useless to me, since 
you  and replaced by adding a directive on items in the Embed-Dependency list. 
Because in many cases you embed multiple libraries, but don't want transitive 
embeds for all of them:

<Embed-Dependency>
    libraryA;transitive=true,
    libraryB
</Embed-Dependency>

And then maybe also allow exclusions on the individual transitive dependency 
"trees":

<Embed-Dependency>
    libraryA;transitive=true;exclude=foo;exclude=bar,
    libraryB
</Embed-Dependency>

This is more intuitive than the wildcard + scope approach, which is the 
"simplest" way to get things running. From experience, it is always a huge lot 
of work and fiddling when embedding libraries.
                
> Embed-Transitive not working reliably 
> --------------------------------------
>
>                 Key: FELIX-2016
>                 URL: https://issues.apache.org/jira/browse/FELIX-2016
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.1
>            Reporter: Michael Dürig
>
> <Embed-Transitive>true</Embed-Transitive> only includes the transitive 
> dependencies when Embed-Dependency contains a wildcard pattern (i.e. 
> <Embed-Dependency>*</Embed-Dependency>). Otherwise only the direct 
> dependencies of the ones specified in the Embed-Dependency tag are included. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to