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

Provide a tool to test Maven version parsing and comparison

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.3
    • 3.2.5
    • None

    Description

      At the moment, when someone thinks there is a problem, the only way to investigate is to write new unit tests in ComparableVersionTest

      a little CLI tool to display the parsed version (in its canonical form) and comparing arguments would be useful

      $ java -jar maven-artifact-*.jar 3.2.4-alpha-1 3.2.4-SNAPSHOT 3.2.4.0
      Display parameters as parsed by Maven (in canonical form) and comparison result:
      1. 3.2.4-alpha-1 == 3.2.4.alpha.1
         3.2.4-alpha-1 < 3.2.4-SNAPSHOT
      2. 3.2.4-SNAPSHOT == 3.2.4.snapshot
         3.2.4-SNAPSHOT < 3.2.4.0
      3. 3.2.4.0 == 3.2.4

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              hboutemy Herve Boutemy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: