Description
The workaround for 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 |