Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5761

Dependency management is not transitive.

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.2.5
    • Fix Version/s: 3.6.x-candidate
    • Component/s: Dependencies
    • Labels:
      None

      Description

      A detailed description of the issue is here:

      http://stackoverflow.com/questions/28312975/maven-dependencymanagement-version-ignored-in-transitive-dependencies

      The short of it is that maven appears to be using the wrong <dependencyManagement> version in a transitive dependency. There are two relevant <dependencyManagement> sections in the build, one pulled in by guice and one pulled in by gwizard-parent. These are the dependency paths from the top:

      gwizard-example -> gwizard-config -> gwizard-parent
      gwizard-example -> gwizard-config -> guice -> guice-parent

      gwizard-parent's dependencyManagement specifies guava 18
      guice-parent's dependencyManagement specifies guava 16

      Guava 16 is winning. This seems highly undesirable, and in fact it breaks our build. I would expect that in a version # fight, "closest to the top" should win.

        Attachments

        1. MNG-5761.zip
          2 kB
          Samuel Langlois

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lhoriman Jeff Schnitzer
              • Votes:
                6 Vote for this issue
                Watchers:
                20 Start watching this issue

                Dates

                • Created:
                  Updated: