Le 2/07/2017 à 21:19, Chris West a écrit :

> I couldn't find an upstream issue for this, which suggests it may be an
> issue with openjdk-9 itself... or that everyone else is just setting
> JAVA_HOME. Setting JAVA_HOME does fix it, but it may be easier to fix
> the plugin than all the various build scripts?

I got a look and I think this is an upstream bug. The plugin attempts
to locate the javadoc executable [1] by first using the java.home
property and then the JAVA_HOME environment variable. When using the
java.home property it searches for the bin directory in the parent
directory. With OpenJDK 8 the value of java.home is
/usr/lib/jvm/java-8-openjdk-amd64/jre and it works fine. But with
OpenJDK 9 the jre directory no longer exist and java.home points to
/usr/lib/jvm/java-9-openjdk-amd64, so the plugin checks if
/usr/lib/jvm/bin/javadoc exists and fails.

[1]
http://sources.debian.net/src/maven-javadoc-plugin/2.10.4-1/src/main/java/org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java/?hl=1949#L3673

__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
[email protected] for discussions and questions.

Reply via email to