Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5280

transitive dependencies get ignored when building jar

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: maven-bundle-plugin-3.0.0, maven-bundle-plugin-3.0.1
    • Fix Version/s: None
    • Component/s: Maven Bundle Plugin
    • Labels:
    • Environment:
      Windows 7
      Maven 3.3.3
      JRE ORACLE 1.7.0_45
    • Flags:
      Important

      Description

      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 projects:
        • Project B [scope Compile]
          • Project X [scope Compile]
        • Project C [scope Test]
          • Project X [scope Compile]

      Expectation:

      • 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)
        Actual:
      • 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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            MichaelKrein Michael Krein
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 8h
              8h
              Remaining:
              Remaining Estimate - 8h
              8h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development