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

[regression] Dependency resolution does not fail for artifact with over-constrained version ranges

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0.1
    • Dependencies
    • None

    Description

      The sample project shows a usage of build ranges that should result in a build failure when you try to build project D.

      Because project D transitively depends on two different versions of project A 1.0 and 1.1.
      These versions are called out absolutely (using ranges) hence maven should not be able to build the project.

      This fails correctly in maven 2.2.1
      However the project builds successfully in maven 3.0

      Maven 3.0 should also fail to build.

      Note: I have included two copies of the pom file for project A so that you can build both of them without needing to edit the version.
      Build order is: A-1.0, A-1.1, B, C, D

      Attachments

        1. maven-samples.zip
          3 kB
          David Trott

        Activity

          People

            bentmann Benjamin Bentmann
            dtrott David Trott
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: