This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/main by this push:
new 54828ab807 Fix ParseJavaDocMojo for JDK-24 and above (--no-fonts is
not recognized)
54828ab807 is described below
commit 54828ab807a6a1b5ce7388a1fbb3847b94472185
Author: Andriy Redko <[email protected]>
AuthorDate: Wed Aug 20 22:36:57 2025 -0400
Fix ParseJavaDocMojo for JDK-24 and above (--no-fonts is not recognized)
---
.../org/apache/cxf/maven_plugin/javatowadl/ParseJavaDocMojo.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/ParseJavaDocMojo.java
b/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/ParseJavaDocMojo.java
index 76e681e09c..05a87e6448 100644
---
a/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/ParseJavaDocMojo.java
+++
b/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/ParseJavaDocMojo.java
@@ -208,6 +208,12 @@ public class ParseJavaDocMojo extends AbstractMojo {
f.setAccessible(true);
f.set(mojo, repoSession);
+ if (Runtime.version().feature() >= 24) {
+ f =
AbstractJavadocMojo.class.getDeclaredField("disableNoFonts");
+ f.setAccessible(true);
+ f.set(mojo, true);
+ }
+
Method m =
AbstractJavadocMojo.class.getDeclaredMethod("executeReport", Locale.class);
m.setAccessible(true);
m.invoke(mojo, locale);