Skip to content

Commit e269a8f

Browse files
committed
Fix Javadoc generation
javadoc is able to create external links to libraries documented with "mismatching" modularity, like for JUnit Jupiter, which offers modular documentation. However, a warning is generated when the mismatch happens, and this is a problem when using the `-Werror` option to treat warnings as errors. To circumvent this problem without dropping the `-Werror` option, Java 18 added the `--link-modularity-mismatch=(warn|info)` command line option to specify how external documentation with wrong modularity should be reported. See: * https://docs.oracle.com/en/java/javase/18/docs/specs/man/javadoc.html#standard-options-for-the-standard-doclet * https://bugs.openjdk.org/browse/JDK-8274639 * spring-projects/spring-framework#27497
1 parent f16e5df commit e269a8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
<artifactId>maven-javadoc-plugin</artifactId>
101101
<version>3.8.0</version>
102102
<configuration>
103+
<!-- https://bugs.openjdk.org/browse/JDK-8274639 -->
104+
<additionalOptions>--link-modularity-mismatch=info</additionalOptions>
103105
<failOnWarnings>true</failOnWarnings>
104106
<links>
105107
<link>https://javadoc.io/static/com.google.jimfs/jimfs/${jimfs.version}/</link>

0 commit comments

Comments
 (0)