Maven
  1. Maven
  2. MNG-2794

Transitive dependency resolution differs between 2.0.4 and (future) 2.0.5

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.5
    • Fix Version/s: None
    • Component/s: Dependencies
    • Labels:
      None

      Description

      Say you have a project that has 3 dependecies A, B and C, amongst which 2 of them have a dependency D but with a different version:
      A -> D v2.1
      B -> D v3
      C (has no transitive dependency to D)
      In the project, you call a class that exists in D v3 but not in D v2.1.

      -> If you launch "mvn clean compile" with M2.0.4, the build is successful, but not with M2.0.5.

      And the most surprising: if you remove dependency C, then both builds break...

      I attached a test project that reproduces the bug.

        Issue Links

          Activity

          Fabrice Bellingard created issue -
          Fabrice Bellingard made changes -
          Field Original Value New Value
          Summary Transitive dependency resolution differs between 2.0.4 and 2.0.5 Transitive dependency resolution differs between 2.0.4 and (future) 2.0.5
          Fabrice Bellingard made changes -
          Affects Version/s 2.0.4 [ 12527 ]
          Affects Version/s 2.0.5 [ 12294 ]
          Emmanuel Venisse made changes -
          Fix Version/s 2.0.5 [ 12294 ]
          Jason van Zyl made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Won't Fix [ 2 ]
          Hervé Boutemy made changes -
          Link This issue relates to MNG-2832 [ MNG-2832 ]
          Michael Osipov made changes -
          Fix Version/s 2.0.5 [ 12294 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Link This issue relates to MNGSITE-22 [ MNGSITE-22 ]
          Mark Thomas made changes -
          Workflow jira [ 12713333 ] Default workflow, editable Closed status [ 12755582 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Link This issue relates to MNGSITE-22 [ MNGSITE-22 ]
          Mark Thomas made changes -
          Workflow jira [ 12952496 ] Default workflow, editable Closed status [ 12989844 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Fabrice Bellingard
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development