You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2019/08/25 17:15:00 UTC

[jira] [Comment Edited] (MJAVADOC-620) Maven Javadoc Plugin fails to resolve the dependencies when used with Java 11

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

Robert Scholte edited comment on MJAVADOC-620 at 8/25/19 5:14 PM:
------------------------------------------------------------------

[~rfscholte] I've just provided a tiny project with a single sub-module containing a single class, I reproduce the issue on it:
{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-site) on project ardor3d: Error generating maven-javadoc-plugin:3.1.1:aggregate report: 
[ERROR] Exit code: 1 - /home/gouessej/Documents/programmation/java/workspace/MavenTest/test-submodule/src/main/java/org/jogamp/simple/MyTest.java:5: error: package org.eclipse.swt does not exist
[ERROR] import org.eclipse.swt.SWT;
[ERROR] ^
[ERROR] /home/gouessej/Documents/programmation/java/workspace/MavenTest/test-submodule/src/main/java/org/jogamp/simple/MyTest.java:6: error: package org.eclipse.swt.widgets does not exist
[ERROR] import org.eclipse.swt.widgets.Display;
[ERROR] ^
[ERROR] /home/gouessej/Documents/programmation/java/workspace/MavenTest/test-submodule/src/main/java/org/jogamp/simple/MyTest.java:7: error: package org.eclipse.swt.widgets does not exist
[ERROR] import org.eclipse.swt.widgets.Shell;
[ERROR] ^
[ERROR] /home/gouessej/Documents/programmation/java/workspace/MavenTest/test-submodule/src/main/java/org/jogamp/simple/MyTest.java:8: error: package org.eclipse.swt.widgets does not exist
[ERROR] import org.eclipse.swt.widgets.Text;
[ERROR] ^
[ERROR] 
[ERROR] Command line was: /home/gouessej/Documents/installation/openjdk11-jdk/jdk-11.0.1+13/bin/javadoc @options @argfile
[ERROR] 
[ERROR] Refer to the generated Javadoc files in '/home/gouessej/Documents/programmation/java/workspace/MavenTest/target/site/javadoc' 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
{noformat}


was (Author: gouessej):
[~rfscholte] I've just provided a tiny project with a single sub-module containing a single class, I reproduce the issue on it:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-site) on project ardor3d: Error generating maven-javadoc-plugin:3.1.1:aggregate report: 
[ERROR] Exit code: 1 - /home/gouessej/Documents/programmation/java/workspace/MavenTest/test-submodule/src/main/java/org/jogamp/simple/MyTest.java:5: error: package org.eclipse.swt does not exist
[ERROR] import org.eclipse.swt.SWT;
[ERROR] ^
[ERROR] /home/gouessej/Documents/programmation/java/workspace/MavenTest/test-submodule/src/main/java/org/jogamp/simple/MyTest.java:6: error: package org.eclipse.swt.widgets does not exist
[ERROR] import org.eclipse.swt.widgets.Display;
[ERROR] ^
[ERROR] /home/gouessej/Documents/programmation/java/workspace/MavenTest/test-submodule/src/main/java/org/jogamp/simple/MyTest.java:7: error: package org.eclipse.swt.widgets does not exist
[ERROR] import org.eclipse.swt.widgets.Shell;
[ERROR] ^
[ERROR] /home/gouessej/Documents/programmation/java/workspace/MavenTest/test-submodule/src/main/java/org/jogamp/simple/MyTest.java:8: error: package org.eclipse.swt.widgets does not exist
[ERROR] import org.eclipse.swt.widgets.Text;
[ERROR] ^
[ERROR] 
[ERROR] Command line was: /home/gouessej/Documents/installation/openjdk11-jdk/jdk-11.0.1+13/bin/javadoc @options @argfile
[ERROR] 
[ERROR] Refer to the generated Javadoc files in '/home/gouessej/Documents/programmation/java/workspace/MavenTest/target/site/javadoc' 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

> Maven Javadoc Plugin fails to resolve the dependencies when used with Java 11
> -----------------------------------------------------------------------------
>
>                 Key: MJAVADOC-620
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-620
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>          Components: javadoc
>    Affects Versions: 3.1.0, 3.1.1
>         Environment: Mageia Linux 7, AdoptOpenJDK 11.0.1
>            Reporter: Julien Gouesse
>            Priority: Major
>         Attachments: MavenTest.zip
>
>
> Maven Javadoc Plugin fails to resolve the dependencies that are inherited by all sub-modules in the parent pom file and the dependencies specific to some sub-modules if and only if it's used with Java 11 whereas it works flawlessly with Java 8. This bug is reproducible with this project:
> [https://jogamp.org/cgit/ardor3d.git/tree/]
> Enter "mvn site" and you'll get the following error message:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-site) on project ardor3d: Error generating maven-javadoc-plugin:3.1.1:aggregate report: [ERROR] Exit code: 1 - Ardor3D/ardor3d-swt/src/test/java/com/ardor3d/input/swt/TestSwtMouseWrapper.java:23: error: package org.eclipse.swt.events does not exist
> Note that "mvn install" works with Java 11, this problem of dependency management only occurs while generating the Java API documentation with Java 11.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)