Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0
-
None
-
None
Description
Under Java 10 RC, the plugin generates the following exception:
Caused by: java.lang.NullPointerException at org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast (SystemUtils.java:1626) at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.getJavadocExecutable (AbstractJavadocMojo.java:3683) at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport (AbstractJavadocMojo.java:2001) at org.apache.maven.plugins.javadoc.JavadocJar.doExecute (JavadocJar.java:190)
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 https://issues.apache.org/jira/browse/LANG-1365
Inserting an explicit dependency on commons-lang3 version 3.7 for the plugin works round the issue, and changing the dependency seems like the right fix for the next release of this plugin.
Attachments
Issue Links
- depends upon
-
LANG-1365 Fix NullPointerException in isJavaVersionAtLeast on Java 10, add SystemUtils.IS_JAVA_10, add JavaVersion.JAVA_10
- Closed
- is duplicated by
-
MJAVADOC-518 Old commons-lang3 dependency causes NPE with JDK 10
- Closed
-
MJAVADOC-522 Javadoc generation broken on JDK 10 (Commons Lang3 gives NullPointerException)
- Closed
-
MJAVADOC-524 Running javadoc plugin under JDK 10 fails with NPE
- Closed
- is related to
-
MSITE-822 JDK 10: Null Pointer Exception
- Closed