[ https://issues.apache.org/jira/browse/MJAVADOC-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16733751#comment-16733751 ]
Gili edited comment on MJAVADOC-561 at 1/5/19 2:46 AM: ------------------------------------------------------- Okay, now we've got a problem. Although JDK 12 contains a fix, it cannot be used for maven plugins (which just so happens to affect my use-case). * If you invoke {{javadoc:jar}} on a maven plugin that depends on named modules (ones with *module-info.java*) it will fail because of [https://bugs.openjdk.java.net/browse/JDK-8212233] * Per MPLUGIN-341 maven plugins cannot contain *module-info.java*. OpenJDK 11 will not receive any "stability updates" per Oracle policy and OpenJDK 12+ won't support mixing modules and non-modules. So (unless I missed something) the only solution is very far away (not even planned for implementation): MPLUGIN-341 I filed MJAVADOC-562 thinking that passing in *\-source 11* or *--release 11* might help (the JDK bug report hinted as much), but it did not make a difference. was (Author: cowwoc): Okay, now we've got a problem. Although JDK 12 contains a fix, it cannot be used for maven plugins (which just so happens to affect my use-case). * If you invoke {{javadoc:jar}} on a maven plugin that depends on named modules (ones with *module-info.java*) it will fail because of [https://bugs.openjdk.java.net/browse/JDK-8212233] * Per MPLUGIN-341 maven plugins cannot contain *module-info.java*. OpenJDK 11 will not receive any "stability updates" per Oracle policy and OpenJDK 12+ won't support mixing modules and non-modules. So (unless I missed something) the only solution is very far away (not even planned for implementation): MPLUGIN-341 I filed MJAVADOC-562 thinking that passing in *-source 11* or *--release 11* might help (the JDK bug report hinted as much), but it did not make a difference. > Not possible to link to JDK classes since Java 11 > ------------------------------------------------- > > Key: MJAVADOC-561 > URL: https://issues.apache.org/jira/browse/MJAVADOC-561 > Project: Maven Javadoc Plugin > Issue Type: Bug > Components: jar > Affects Versions: 3.1.0 > Reporter: Gili > Assignee: Michael Osipov > Priority: Critical > Attachments: testcase.zip > > > 1. Open testcase > 2. {{mvn javadoc:jar}} > 3. Notice that generated Javadoc contains broken link to {{java.lang.Number}} > It doesn't look like one can link to the JDK as of version 11 because the URL > structure changed since Java 10. > Java 10: https://docs.oracle.com/javase/10/docs/api/java/lang/Number.html > Java 11: > https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Number.html > Please see https://bugs.openjdk.java.net/browse/JDK-8191363 for a related > discussion. If any syntax change is required in the pom, please consider > updating > https://maven.apache.org/plugins/maven-javadoc-plugin/examples/links-configuration.html > accordingly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)