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

Saad Ur Rahman edited comment on MESOS-10129 at 6/24/21, 6:46 PM:
------------------------------------------------------------------

I am on it. I just ran a clean build of Mesos from the updated _upstream:main_ 
without issues.

*OS:* Ubuntu 21.04

*Javac:* openjdk-11-jdk-headless:amd64: 
/usr/lib/jvm/java-11-openjdk-amd64/bin/javac

*Java:* openjdk-11-jre-headless:amd64: 
/usr/lib/jvm/java-11-openjdk-amd64/bin/java

Sorry, I am still a bit of a newbie with Mesos, is there a specific build 
command I should run to try and replicate this? It might be a Debian-specific 
issue.


was (Author: surahman):
I am on it.

> 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)

Reply via email to