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

Dependency management import should support version ranges.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1
    • Fix Version/s: 3.6.x-candidate
    • Component/s: None
    • Labels:
      None
    • Environment:
      Maven 2.2.1

      Description

      Version ranges cannot be used for artifacts with import scope. If a version range is used for such an artifact, Maven cannot find it. Looking at the console output shows that it takes the version range as the version, without resolving it:

      Downloading: http://some-repo/group/artifact/[1.0.0,2.0.0)/artifact-[1.0.0,2.0.0).pom

      This is the POM snippet:

      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>group</groupId>
            <artifactId>artifact</artifactId>
            <version>[1.0.0,2.0.0)</version>
            <!-- Using e.g. <version>1.1.0</version> does work! -->
            <type>pom</type>
            <scope>import</scope>
          </dependency>
        </dependencies>
      </dependencyManagement>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                robth Rob ten Hove
              • Votes:
                16 Vote for this issue
                Watchers:
                31 Start watching this issue

                Dates

                • Created:
                  Updated: