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

Version comparison CLI does not work anymore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • 3.6.1
    • 3.6.2
    • Command Line
    • None

    Description

      Since 3.6.1, comparison CLI does not work :

      $ java -jar apache-maven-3.6.1/lib/maven-artifact-3.6.1.jar 5.32 5.27
      Display parameters as parsed by Maven (in canonical form) and comparison result:
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
      at org.apache.maven.artifact.versioning.ComparableVersion.stripLeadingZeroes(ComparableVersion.java:612)
      at org.apache.maven.artifact.versioning.ComparableVersion.parseItem(ComparableVersion.java:594)
      at org.apache.maven.artifact.versioning.ComparableVersion.parseVersion(ComparableVersion.java:529)
      at org.apache.maven.artifact.versioning.ComparableVersion.<init>(ComparableVersion.java:496)
      at org.apache.maven.artifact.versioning.ComparableVersion.main(ComparableVersion.java:679)
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils
      at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 5 more
      

       

      Attachments

        Issue Links

          Activity

            People

              khmarbaise Karl Heinz Marbaise
              bguerin Benoit GUERIN
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: