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

Version range is not resolved correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.3.3
    • None
    • Dependencies
    • None

    Description

      When dependency is specified as range, e.g slf4j-api version [1.7, 1.8) as in provided pom.xml, one would expect to resolver to version 1.7.X (e.g. 1.7.25). Instead maven resolves version 1.8.0-alpha 2.

      Output of command 'mvn dependenct:tree' on provided pom.xml:

      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building project 1.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-dependency-plugin:2.8:tree (default-cli) @ project —
      [INFO] test:project:jar:1.0.0-SNAPSHOT
      [INFO] - org.slf4j:slf4j-api:jar:1.8.0-alpha2:compile
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.273 s
      [INFO] Finished at: 2017-05-12T23:37:02+02:00
      [INFO] Final Memory: 13M/225M
      [INFO] ------------------------------------------------------------------------

      Attachments

        1. pom.xml
          0.5 kB
          Marek Budyn

        Issue Links

          Activity

            People

              Unassigned Unassigned
              neg Marek Budyn
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: