Uploaded image for project: 'Maven JDeps Plugin'
  1. Maven JDeps Plugin
  2. MJDEPS-4

Upgrade commons-lang to be able to run with JDK9

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • 3.1.0
    • None

    Description

      When running this plugin with Java9 it fails with

      Caused by: java.lang.ExceptionInInitializerError
          at org.apache.maven.plugin.jdeps.AbstractJDepsMojo.getJDepsExecutable(AbstractJDepsMojo.java:359)
          at org.apache.maven.plugin.jdeps.AbstractJDepsMojo.execute(AbstractJDepsMojo.java:196)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
          ... 21 more
      Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1
          at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116)
          at java.base/java.lang.String.substring(String.java:1885)
          at org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:1133)
          at org.apache.commons.lang.SystemUtils.<clinit>(SystemUtils.java:818)
          ... 24 more
      

      Like other plugins upgrading commons-lang will fix this.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            mark@talios.com Mark Derricutt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: