[
https://issues.apache.org/jira/browse/FELIX-5452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15761521#comment-15761521
]
Stefan Seifert commented on FELIX-5452:
---------------------------------------
yes, i think this is ok. in the maven-scr-plugin it should be quite impossible
that class not found exceptions occur, because the generator gets only the
class files that where compiled immediately before in the maven 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
> Assignee: Carsten Ziegeler
> 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)