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

Support version ranges in parent elements

    XMLWordPrintableJSON

Details

    Description

      It would be great if Maven supports version ranges when specifying parent artifacts in a multi-module build. Currently this does not work.

        <parent>
          <artifactId>artifactId</artifactId>
          <groupId>groupId</groupId>
          <version>[2.0, 2.0.1]</version>
        </parent>
      [INFO] Scanning for projects...
      Downloading: http://repo1.maven.org/maven2/groupId/artifactId/[2.0, 2.0.1]/artifactId-[2.0, 2.0.1].pom

      Additionally it would be great if this

        <parent>
          <artifactId>artifactId</artifactId>
          <groupId>groupId</groupId>
          <version>[2.0, ${pom.version}]</version>
        </parent>
      [INFO] Scanning for projects...
      Downloading: http://repo1.maven.org/maven2/groupId/artifactId/[2.0, ${pom.version}]/artifactId-[2.0, ${pom.version}].pom

      would also work, if the version is specified in the same pom.xml which defines this parent definition.

      Attachments

        1. test-project.zip
          0.6 kB
          Eduardo Souza
        2. MNG-2199-3.1.0-alpha-1.patch
          29 kB
        3. MNG-2199-3.0.4.patch
          22 kB
        4. MNG-2199-3.0.4.patch
          23 kB
        5. MNG-2199.patch
          10 kB
        6. MNG-2199.patch
          16 kB
        7. MNG-2199.patch
          16 kB
        8. MNG-2199.patch
          16 kB
        9. MNG-2199.patch
          23 kB
        10. MNG-2199.patch
          24 kB

        Issue Links

          Activity

            People

              schulte77 Christian Schulte
              schulte77 Christian Schulte
              Votes:
              26 Vote for this issue
              Watchers:
              37 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: