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

Depending on declaration order, nearest matching version does not win when version range is involved in conflict

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1, 3.0-beta-2
    • 3.0-beta-3
    • Dependencies
    • None

    Description

      Consider these two dirty trees that differ only by the order of direct dependencies:

      project
      +- a:1.0
      +- b:0.1
      |  \- c:0.1
      |     \- a:[2.0,3)
      \- d:0.1
         \- a:2.0
      
      project
      +- a:1.0
      +- d:0.1
      |  \- a:2.0
      \- b:0.1
         \- c:0.1
            \- a:[2.0,3)
      

      Further assume the repository contains version 1.0, 2.0 and 2.1 of a. Also note that each occurrence of a appears on a different tree depth.

      The first tree picks version 2.0, the latter 2.1 (from the range), although 2.0 is the nearer declaration (lower depth).

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: