Maven
  1. Maven
  2. MNG-3092

Resolution of version ranges with non-snapshot bounds can resolve to a snapshot version

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.x / Backlog
    • Component/s: Dependencies
    • Labels:
      None
    • Flags:
      Patch

      Description

      Contrary to the 2.0 design docs:

      "Resolution of dependency ranges should not resolve to a snapshot (development version) unless it is included as an explicit boundary."
      – from http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-Incorporating%7B%7BSNAPSHOT%7D%7Dversionsintothespecification

      The following is equates to true:

      VersionRange.createFromVersionSpec( "[1.0,1.1]" ).containsVersion( new DefaultArtifactVersion( "1.1-SNAPSHOT" ) )

      The attached patch only allows snapshot versions to be contained in a range if they are equal to one of the boundaries. Note that this is a strict equality, so [1.0,1.2-SNAPSHOT] will not contain 1.1-SNAPSHOT.

      1. MNG-3092.patch
        2 kB
        Kunalkumar Somani
      2. MNG-3092.patch
        4 kB
        Mark Hobson

        Issue Links

          Activity

          Mark Hobson created issue -
          Mark Hobson made changes -
          Field Original Value New Value
          Attachment MNG-3092.patch [ 28282 ]
          Mark Hobson made changes -
          Link This issue is depended upon by MNG-2994 [ MNG-2994 ]
          Mark Hobson made changes -
          Link This issue is duplicated by MNG-3109 [ MNG-3109 ]
          Mark Hobson made changes -
          Link This issue relates to MNG-3001 [ MNG-3001 ]
          Mark Hobson made changes -
          Link This issue relates to MNG-3001 [ MNG-3001 ]
          Mark Hobson made changes -
          Link This issue is duplicated by MNG-3001 [ MNG-3001 ]
          Dave Hoffer made changes -
          Link This issue is related to MIDEA-90 [ MIDEA-90 ]
          Brett Porter made changes -
          Assignee Mark Hobson [ mihobson ]
          Brett Porter made changes -
          Fix Version/s 2.0.x [ 13141 ]
          brianfox made changes -
          Fix Version/s 2.0.x [ 13141 ]
          Fix Version/s 2.0.10 [ 14112 ]
          Benjamin Bentmann made changes -
          Link This issue is depended upon by MRELEASE-318 [ MRELEASE-318 ]
          John Casey made changes -
          Fix Version/s 2.0.11 [ 14118 ]
          Fix Version/s 2.0.10 [ 14112 ]
          Brett Porter made changes -
          Link This issue is duplicated by MNG-4089 [ MNG-4089 ]
          Paul Gier made changes -
          Link This issue relates to MRELEASE-216 [ MRELEASE-216 ]
          Brett Porter made changes -
          Fix Version/s 2.2.1 [ 15328 ]
          Fix Version/s 2.0.11 [ 14118 ]
          John Casey made changes -
          Fix Version/s 2.2.2 [ 15472 ]
          Fix Version/s 2.2.1 [ 15328 ]
          Jason van Zyl made changes -
          Fix Version/s 3.0-alpha-7 [ 16087 ]
          Fix Version/s 2.2.2 [ 15472 ]
          Benjamin Bentmann made changes -
          Fix Version/s 3.0-alpha-8 [ 16088 ]
          Fix Version/s 3.0-alpha-7 [ 16087 ]
          Jason van Zyl made changes -
          Fix Version/s 3.0-beta-1 [ 16089 ]
          Fix Version/s 3.0-alpha-8 [ 16088 ]
          Benjamin Bentmann made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Benjamin Bentmann made changes -
          Link This issue relates to MENFORCER-94 [ MENFORCER-94 ]
          Benjamin Bentmann made changes -
          Link This issue relates to MNG-4295 [ MNG-4295 ]
          Benjamin Bentmann made changes -
          Link This issue relates to MNG-4751 [ MNG-4751 ]
          Benjamin Bentmann made changes -
          Status Closed [ 6 ] Reopened [ 4 ]
          Resolution Fixed [ 1 ]
          Assignee Mark Hobson [ mihobson ]
          Benjamin Bentmann made changes -
          Fix Version/s 3.0-beta-1 [ 16089 ]
          Jason van Zyl made changes -
          Fix Version/s 3.1.0 [ 18967 ]
          Jason van Zyl made changes -
          Assignee Jason van Zyl [ jason ]
          Jason van Zyl made changes -
          Fix Version/s 3.1.1 [ 18968 ]
          Fix Version/s 3.1.0 [ 18967 ]
          Hervé Boutemy made changes -
          Link This issue relates to MNG-5353 [ MNG-5353 ]
          Kunalkumar Somani made changes -
          Attachment MNG-3092.patch [ 62951 ]
          Jason van Zyl made changes -
          Fix Version/s 3.1.1 [ 18968 ]
          Fix Version/s 3.1.2 [ 18969 ]
          Jason van Zyl made changes -
          Fix Version/s 3.2 [ 15565 ]
          Fix Version/s 3.1.2 [ 18969 ]
          Jason van Zyl made changes -
          Fix Version/s 3.2 [ 15565 ]
          Fix Version/s 3.2.x [ 19869 ]
          Hervé Boutemy made changes -
          Summary Version ranges with non-snapshot bounds can contain snapshot versions resolution of version ranges with non-snapshot bounds can give snapshot version
          Hervé Boutemy made changes -
          Summary resolution of version ranges with non-snapshot bounds can give snapshot version resolution of version ranges with non-snapshot bounds can resolve to a snapshot version
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Link This issue relates to MENFORCER-94 [ MENFORCER-94 ]
          Mark Thomas made changes -
          Link This issue is depended upon by MRELEASE-318 [ MRELEASE-318 ]
          Mark Thomas made changes -
          Link This issue relates to MRELEASE-216 [ MRELEASE-216 ]
          Mark Thomas made changes -
          Workflow jira [ 12713582 ] Default workflow, editable Closed status [ 12755610 ]
          Mark Thomas made changes -
          Flags Patch [ 10430 ]
          Patch Submitted Yes [ 10763 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Link This issue relates to MENFORCER-94 [ MENFORCER-94 ]
          Mark Thomas made changes -
          Link This issue is depended upon by MRELEASE-318 [ MRELEASE-318 ]
          Mark Thomas made changes -
          Link This issue relates to MRELEASE-216 [ MRELEASE-216 ]
          Mark Thomas made changes -
          Workflow jira [ 12952447 ] Default workflow, editable Closed status [ 12989791 ]
          Mark Thomas made changes -
          Assignee jason lane [ jason ] Jason van Zyl [ jvanzyl ]
          Michael Osipov made changes -
          Assignee Jason van Zyl [ jvanzyl ] Michael Osipov [ michael-o ]
          Michael Osipov made changes -
          Fix Version/s 3.3.10 [ 12334181 ]
          Fix Version/s 3.2.x [ 12330191 ]
          Michael Osipov made changes -
          Summary resolution of version ranges with non-snapshot bounds can resolve to a snapshot version Resolution of version ranges with non-snapshot bounds can resolve to a snapshot version
          Michael Osipov made changes -
          Fix Version/s 3.x / Backlog [ 12330196 ]
          Fix Version/s 3.3.10 [ 12334181 ]
          Michael Osipov made changes -
          Assignee Michael Osipov [ michael-o ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Mark Hobson
            • Votes:
              86 Vote for this issue
              Watchers:
              90 Start watching this issue

              Dates

              • Created:
                Updated:

                Development