You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Carlos Saltos (Jira)" <ji...@apache.org> on 2020/05/17 16:30:00 UTC

[jira] [Comment Edited] (MESOS-10129) Build fails on Maven javadoc generation when using JDK11

    [ https://issues.apache.org/jira/browse/MESOS-10129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17109560#comment-17109560 ] 

Carlos Saltos edited comment on MESOS-10129 at 5/17/20, 4:29 PM:
-----------------------------------------------------------------

{{As a reference, here the breaking javadoc option at src/java/target/apidocs/options at building ->}}

{{-linkoffline}}
 {{'http://download.oracle.com/javase/6/docs/api' '/home/admin/mesos-deb-packaging/mesos-repo/build/src/java/target/javadoc-bundle-options'}}

{{Note: this breaking option is fixed when <detectJavaApiLink>false</detectJavaApiLink> is included at the javadoc configuration section of the Mevan mesos.pom.in file}}


was (Author: csaltos):
{{As a reference, here the breaking javadoc option at src/java/target/apidocs/options at building ->}}{{}}

{{-linkoffline}}
{{'http://download.oracle.com/javase/6/docs/api' '/home/admin/mesos-deb-packaging/mesos-repo/build/src/java/target/javadoc-bundle-options'}}

{{Note: this breaking option is fixed when <detectJavaApiLink>false</detectJavaApiLink> is included at the javadoc configuration section of the Mevan mesos.pom.in file}}

> Build fails on Maven javadoc generation when using JDK11
> --------------------------------------------------------
>
>                 Key: MESOS-10129
>                 URL: https://issues.apache.org/jira/browse/MESOS-10129
>             Project: Mesos
>          Issue Type: Bug
>          Components: build
>    Affects Versions: master, 1.10.0
>         Environment: Debian 10 Buster (2020-04-29) with OpenJdk 11.0.7 (2020-04-14)
>            Reporter: Carlos Saltos
>            Priority: Major
>              Labels: Java11, beginner, build, java11, jdk11
>         Attachments: mesos.10.0.maven.javadoc.fix.patch
>
>
> h3. CURRENT BEHAVIOR:
> When using Java 11 (or newer versions) the Javadoc generation step fails with the error:
> {{[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:jar (build-and-attach-javadocs) on project mesos: MavenReportException: Error while creating archive:}}
> {{[ERROR] Exit code: 1 - javadoc: error - The code being documented uses modules but the packages defined in http://download.oracle.com/javase/6/docs/api/ are in the unnamed module.}}
> {{[ERROR]}}
> {{[ERROR] Command line was: /usr/lib/jvm/java-11-openjdk-amd64/bin/javadoc @options}}
> {{[ERROR]}}
> {{[ERROR] Refer to the generated Javadoc files in '/home/admin/mesos-deb-packaging/mesos-repo/build/src/java/target/apidocs' dir.}}
> {{[ERROR] -> [Help 1]}}
> {{[ERROR]}}
> {{[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.}}
> {{[ERROR] Re-run Maven using the -X switch to enable full debug logging.}}
> {{[ERROR]}}
> {{[ERROR] For more information about the errors and possible solutions, please read the following articles:}}
> {{[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException}}
> {{make[1]: *** [Makefile:17533: java/target/mesos-1.11.0.jar] Error 1}}
> {{make[1]: Leaving directory '/home/admin/mesos-deb-packaging/mesos-repo/build/src'}}
> {{make: *** [Makefile:785: all-recursive] Error 1}}
> *NOTE:* The error is at the Maven javadoc plugin call when it tries to include references to the non-existant old Java 6 documentation.
> h3. POSSIBLE SOLUTION:
> Just remove the old reference with adding <detectJavaApiLink>false</detectJavaApiLink> to theĀ  javadoc maven plugin configuration section



--
This message was sent by Atlassian Jira
(v8.3.4#803005)