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

Assembly plugin does not resolve version ranges correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.6
    • None
    • None
    • None
    • XP Pro SP2
    • Patch

    Description

      Similar to MRELEASE-134 in maven-release-plugin

      <dependency>
      <groupId>myGroup</groupId>
      <artifactId>myArtifact</artifactId>
      <version>[1.0,)</version>
      </dependency>

      This version range can resolve to the latest development SNAPSHOT. All artifact dependencies should ignore SNAPSHOTS as that is not intended by the unbounded high end of the version range. This should resolve to any released version of 1.1 or higher.

      This document:
      http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges
      addressed the requirements for version ranges and stated that "Resolution of dependency ranges should not resolve to a snapshot (development version) unless it is included as an explicit boundary". I think this requirement was forgotten when version ranges were implemented.

      Attachments

        1. VersionRangeSnapshotFix.patch
          6 kB
          Dave Hoffer

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dhoffer@xrite.com David Hoffer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: