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

Carsten Ziegeler commented on FELIX-5452:
-----------------------------------------

[[email protected]] Thanks for the issue. This patch changes the scr 
generator, which is used by both maven scr plugin and the bnd plugin. So it 
changes the behaviour for both (not throwing an exception). I assume this is 
ok, but just want to cross check before applying

> SCR bnd plugin fails when embedding jars with optional/excluded dependencies
> ----------------------------------------------------------------------------
>
>                 Key: FELIX-5452
>                 URL: https://issues.apache.org/jira/browse/FELIX-5452
>             Project: Felix
>          Issue Type: Bug
>          Components: SCR Tooling
>    Affects Versions: scr generator 1.15.0, scr bnd plugin 1.6.0
>            Reporter: Stefan Seifert
>             Fix For: scr generator 1.16.0, scr bnd plugin 1.7.0
>
>         Attachments: FELIX-5452.patch
>
>
> when the maven-bundle-plugin is used to embedded JAR dependencies, and those 
> dependencies contain optional or excluded further dependencies which classes 
> are somewhere references in the dependency itself SCR generation via 
> maven-bundle-plugin and the SCR bnd plugin fails.
> it does *not* fail when using the maven-scr-plugin.
> the reason for the difference is that the maven-scr-plugin analyzes only the 
> classes compiled in the target folder, not the classes of embedded 
> dependencies. the bnd plugin cannot differentiate if the classes in the 
> bundle jar where embedded or compiled and always scans all of them.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to