You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2010/02/17 12:35:28 UTC

[jira] Updated: (FELIX-2088) SCR Plugin ignores transitive dependencies when inspecting super classes

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

Stefan Seifert updated FELIX-2088:
----------------------------------

    Attachment: 100217_FELIX-2088_dependency_fix.patch

> SCR Plugin ignores transitive dependencies when inspecting super classes
> ------------------------------------------------------------------------
>
>                 Key: FELIX-2088
>                 URL: https://issues.apache.org/jira/browse/FELIX-2088
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: maven-scr-plugin-1.4.2
>            Reporter: Stefan Seifert
>             Fix For:  maven-scr-plugin-1.4.4
>
>         Attachments: 100217_FELIX-2088_dependency_fix.patch
>
>
> scenario:
> - i've three maven-based bundle projects that depend on each other: A depends on B, B depends on C
> - bundle A contains an abstract SCR component X wich defines some osgi properties and references
> - bundle C contains a SCR component Y that extends X and is expected to inherit the osgi properties and references declared in X
> problem: Y does not inherit the OSGI properties/references declared in X
> reason: MavenJavaClassDescriptorManager uses project.getDependencyArtifacts() to iterate over the dependencies to check for SCR component metadata in other artifacts.
> but the method getDependencyArtifacts() returns only the dependencies declared directly in the current pom, not the transitive dependencies.
> the patch attached solves the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.