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

Upgrade commons-lang to be able to run with JDK9

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Labels:
      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.

        Activity

        Hide
        rfscholte Robert Scholte added a comment -

        Fixed in r1806434

        Show
        rfscholte Robert Scholte added a comment - Fixed in r1806434
        Hide
        hudson Hudson added a comment -

        UNSTABLE: Integrated in Jenkins build maven-plugins #9081 (See https://builds.apache.org/job/maven-plugins/9081/)
        MJDEPS-4 Upgrade commons-lang to be able to run with JDK9 (rfscholte: http://svn.apache.org/viewvc/?view=rev&rev=1806434)

        • (edit) maven-jdeps-plugin/pom.xml
        • (add) maven-jdeps-plugin/src/it/basic
        • (add) maven-jdeps-plugin/src/it/basic/invoker.properties
        • (add) maven-jdeps-plugin/src/it/basic/pom.xml
        • (add) maven-jdeps-plugin/src/it/basic/src
        • (add) maven-jdeps-plugin/src/it/basic/src/main
        • (add) maven-jdeps-plugin/src/it/basic/src/main/java
        • (add) maven-jdeps-plugin/src/it/basic/src/main/java/Main.java
        • (edit) maven-jdeps-plugin/src/it/unsupported-api_main/invoker.properties
        • (edit) maven-jdeps-plugin/src/it/unsupported-api_test/invoker.properties
        • (edit) maven-jdeps-plugin/src/main/java/org/apache/maven/plugin/jdeps/AbstractJDepsMojo.java
        Show
        hudson Hudson added a comment - UNSTABLE: Integrated in Jenkins build maven-plugins #9081 (See https://builds.apache.org/job/maven-plugins/9081/ ) MJDEPS-4 Upgrade commons-lang to be able to run with JDK9 (rfscholte: http://svn.apache.org/viewvc/?view=rev&rev=1806434 ) (edit) maven-jdeps-plugin/pom.xml (add) maven-jdeps-plugin/src/it/basic (add) maven-jdeps-plugin/src/it/basic/invoker.properties (add) maven-jdeps-plugin/src/it/basic/pom.xml (add) maven-jdeps-plugin/src/it/basic/src (add) maven-jdeps-plugin/src/it/basic/src/main (add) maven-jdeps-plugin/src/it/basic/src/main/java (add) maven-jdeps-plugin/src/it/basic/src/main/java/Main.java (edit) maven-jdeps-plugin/src/it/unsupported-api_main/invoker.properties (edit) maven-jdeps-plugin/src/it/unsupported-api_test/invoker.properties (edit) maven-jdeps-plugin/src/main/java/org/apache/maven/plugin/jdeps/AbstractJDepsMojo.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development