[ https://issues.apache.org/jira/browse/MJAVADOC-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17055351#comment-17055351 ]
Michael Osipov edited comment on MJAVADOC-615 at 3/9/20, 8:44 PM: ------------------------------------------------------------------ The JDK issue has been resolved. No need to take action. See: {noformat} [INFO] --- maven-javadoc-plugin:3.1.0:javadoc (default-cli) @ mjavadoc-615 --- [ERROR] Error fetching link: D:\Entwicklung\Projekte\mjavadoc-615\target\javadoc-bundle-options. Ignored it. [INFO] Loading source files for package com.example.mjavadoc615... Constructing Javadoc information... Standard Doclet version 13.0.2 Building tree for all the packages and classes... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\com\example\mjavadoc615\Foo.html... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\com\example\mjavadoc615\package-summary.html... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\com\example\mjavadoc615\package-tree.html... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\constant-values.html... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\com\example\mjavadoc615\class-use\Foo.html... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\com\example\mjavadoc615\package-use.html... Building index for all the packages and classes... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\overview-tree.html... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\deprecated-list.html... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\index-all.html... Building index for all classes... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\allclasses-index.html... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\allpackages-index.html... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\index.html... Generating D:\Entwicklung\Projekte\mjavadoc-615\target\site\apidocs\help-doc.html... [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.946 s [INFO] Finished at: 2020-03-09T21:43:31+01:00 [INFO] ------------------------------------------------------------------------ PS D:\Entwicklung\Projekte\mjavadoc-615> {noformat} was (Author: michael-o): The JDK issue has been resolved. No need to take action. > Workaround for bug JDK-8212233 does no longer work in 3.1.1 when using Java 12 > ------------------------------------------------------------------------------ > > Key: MJAVADOC-615 > URL: https://issues.apache.org/jira/browse/MJAVADOC-615 > Project: Maven Javadoc Plugin > Issue Type: Bug > Components: jar, javadoc > Affects Versions: 3.1.1 > Reporter: Benedikt Ritter > Assignee: Olivier Lamy > Priority: Major > Attachments: mjavadoc-615.tar.gz > > > The workaround for > [JDK-8212233|https://bugs.openjdk.java.net/browse/JDK-8212233] does not > longer work in 3.1.1 when building on Java 12. The error being reported is: > {{Exit code: 1 - javadoc: error - The code being documented uses packages in > the unnamed module, but the packages defined in > [https://docs.oracle.com/en/java/javase/12/docs/api/] are in named modules.}} > The workaround for this was to add <source>8</source> to the > maven-javadoc-plugin configuration. This would fix the issue on Java 9,10 and > 12 in 3.1.0. On 11 it was still broken. When I updated to the 3.1.1 release, > my build started to fail on Java 12, although it worked before. > I've attached a demo project and here is what I can observe when I run mvn > javadoc:javadoc: > > ||Plugin version||Java Version||Result|| > |3.1.0|9|Success| > |3.1.0|10|Success| > |3.1.0|11|Failure| > |3.1.0|12|*Success*| > |3.1.1|9|Success| > |3.1.1|10|Success| > |3.1.1|11|Failure| > |3.1.1|12|*Failure*| > -- This message was sent by Atlassian Jira (v8.3.4#803005)