Ian Young created MJAVADOC-517:

             Summary: NPE under Java 10 EA
                 Key: MJAVADOC-517
                 URL: https://issues.apache.org/jira/browse/MJAVADOC-517
             Project: Maven Javadoc Plugin
          Issue Type: Bug
    Affects Versions: 3.0.0
            Reporter: Ian Young

Under Java 10 EA, the plugin generates the following exception:
Caused by: java.lang.NullPointerException
    at org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast 
    at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport 
    at org.apache.maven.plugins.javadoc.JavadocJar.doExecute 
This seems to be down to the version string:
java version "10" 2018-03-20
Java(TM) SE Runtime Environment 18.3 (build 10+43)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+43, mixed mode)
{{commons-lang3}} version 3.5 can't deal with this, see 

Inserting an explicit dependency on {{commons-lang3}} version 3.7 for the 
plugin works round the issue, and seems the right fix for the next release of 
this plugin.

This message was sent by Atlassian JIRA

Reply via email to