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

Transitive dependency resolution differs between 2.0.4 and (future) 2.0.5

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.5
    • None
    • Dependencies
    • 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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            fabemn Fabrice Bellingard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment