From e269a8fdea9040a1e823b1560d68c7c5a17f1215 Mon Sep 17 00:00:00 2001 From: Stefano Cordio Date: Tue, 30 Jul 2024 01:03:56 +0200 Subject: [PATCH] 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 --- pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pom.xml b/pom.xml index c80f79e..94af087 100644 --- a/pom.xml +++ b/pom.xml @@ -100,6 +100,8 @@ maven-javadoc-plugin 3.8.0 + + --link-modularity-mismatch=info true https://javadoc.io/static/com.google.jimfs/jimfs/${jimfs.version}/