felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Krein (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-5280) transitive dependencies get ignored when building jar
Date Tue, 14 Jun 2016 13:33:01 GMT
Michael Krein created FELIX-5280:

             Summary: transitive dependencies get ignored when building jar
                 Key: FELIX-5280
                 URL: https://issues.apache.org/jira/browse/FELIX-5280
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
    Affects Versions: maven-bundle-plugin-3.0.1, maven-bundle-plugin-3.0.0
         Environment: Windows 7
Maven 3.3.3
JRE ORACLE 1.7.0_45
            Reporter: Michael Krein
            Priority: Critical

We have the following situation:
* Maven bundle plugin has version 3.0.1 (or 3.0.0) and contains the instruction to embed projects
with scope=(compile|runtime)

* we have project A having the Maven bundle plugin and following dependency tree to other
** Project B [scope Compile]
*** Project X [scope Compile]
** Project C [scope Test]
*** Project X [scope Compile]

* when building a jar for the main code, the content of Project X gets embedded. (No matter
whether it is included by test scope additionally to the scope compile)
* As long as there is a transitive dependency to Project X with Test scope, the project is
not embedded.
Other observations:
* Direct dependencies are always included
* if in project C an exclusion to project X would be added, then the jar for project A would
contain X as there are no test dependencies to it

This happens since version 3.0.0 so we have to downgrade the maven plugin version to 2.5.4
(and thus miss other important features) just to make the transitive dependency work.

We would be very thankful to know a rough estimation when we can expect an release that fixes
this issue.

This message was sent by Atlassian JIRA

View raw message