You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2019/07/11 09:23:01 UTC
[jira] [Updated] (MJAVADOC-615) Workaround for bug JDK-8212233 does
no longer work in 3.1.1
[ https://issues.apache.org/jira/browse/MJAVADOC-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benedikt Ritter updated MJAVADOC-615:
-------------------------------------
Description:
The workaround for [JDK-8212233|https://bugs.openjdk.java.net/browse/JDK-8212233] does not longer work in 3.1.1. 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. On 11 it was stil 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*|
> Workaround for bug JDK-8212233 does no longer work in 3.1.1
> -----------------------------------------------------------
>
> 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
> Priority: Major
>
> The workaround for [JDK-8212233|https://bugs.openjdk.java.net/browse/JDK-8212233] does not longer work in 3.1.1. 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. On 11 it was stil 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
(v7.6.14#76016)