[
https://issues.apache.org/jira/browse/MJAVADOC-555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16746949#comment-16746949
]
Gili commented on MJAVADOC-555:
-------------------------------
Lets say I skip the integration test for a moment, when I try invoking the
"aggregate" goal with:
{code:java}
<javaApiLinks>
<property>
<name>api_12</name>
<value>https://download.java.net/java/early_access/jdk12/docs/api/</value>
</property>
</javaApiLinks>
{code}
I get a {{NullPointerException}} on
{{AbstractJavadocMojo.getDefaultJavadocApiLink()}} because it tries reading
{{java-api-element-list-12}} which does not exist. It looks like you have such
files for JDK 1.3 through 11 but nothing for 12. I tried using
{{<source>11</source>}} instead. This did not throw an exception but JDK
classes were not linked in the output.
How do I get JDK 12 to build Javadoc that links to the online Java 11
documentation?
> Javadoc:aggregate, Javadoc:jar fail if one of the modules does not contain
> module-info.java
> -------------------------------------------------------------------------------------------
>
> Key: MJAVADOC-555
> URL: https://issues.apache.org/jira/browse/MJAVADOC-555
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Components: jar, javadoc
> Affects Versions: 3.1.0
> Environment: Maven 3.6.0
> maven-javadoc-plugin 3.0.2-SNAPSHOT (required for Java 11 support)
> Reporter: Gili
> Assignee: Robert Scholte
> Priority: Major
> Fix For: 3.1.0
>
> Attachments: javadoc-cannot-link-to-automatic-modules.zip,
> testcase.zip, toolchains.xml
>
>
> # Unzip testcase
> # Run {{mvn clean install javadoc:aggregate}}
> # Build fails with: {{Exit code: 2 - javadoc: error - No source files for
> package module2}}
> Per MPLUGIN-341, Maven plugins cannot contain {{module.info.java}}. One of my
> projects builds under Java 11 and is fully modularized except for one module
> which is a Maven plugin. Due to the aforementioned issue, I cannot useĀ
> {{javadoc:aggregate.}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)