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

Fix version comparison where .X1 < -X2 for any string qualifier X

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.8.6, 4.0.0-alpha-3
    • 3.8.7, 3.9.0, 4.0.0-alpha-4, 4.0.0
    • None
    • None

    Description

      The current version parser does not treat .RC and -RC correctly:
      actual : 1.0.0.RC1 > 1.0.0-RC2
      expected : 1.0.0.RC1 < 1.0.0-RC2

      because RC1 < RC2
      how to fix : place a list item before qualifier

      the intention is to have this same result with all qualifier x:
      actual : 1.0.0.X1 > 1.0.0-X2
      actual : 1.0.X < 1.0.0.X
      expected : 1.0.0.X1 < 1.0.0-X2
      expected : 1.0.X == 1-X == 1.0.0.X

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              ruelland Gwénaël Ruelland
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: