[ 
https://issues.apache.org/jira/browse/FELIX-5452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Seifert updated FELIX-5452:
----------------------------------
    Attachment: FELIX-5452.patch

patch proposal: [^FELIX-5452.patch]

this logs a WARN message when classes not found during analyzing instead of 
breaking the build.

> 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