From 74cfc72acae4f55708bca189b2170167e83df6b3 Mon Sep 17 00:00:00 2001 From: Henning Schmiedehausen Date: Tue, 5 Mar 2024 21:04:43 -0800 Subject: [PATCH] [MCOMPILER-548] JDK 21 throws annotations processing warning that can not be turned off (#200) Turns out this is just a documentation issue. `full` works fine but is not documented. Also add property for proc parameter --------- Co-authored-by: Slawomir Jaranowski --- .../apache/maven/plugin/compiler/AbstractCompilerMojo.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java index 538b7ffc..78803f7d 100644 --- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java +++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java @@ -294,13 +294,16 @@ public abstract class AbstractCompilerMojo extends AbstractMojo { * * + * full is the default. Starting with JDK 21, this option must be set explicitly. + * * @since 2.2 * @see javac -proc * @see javac Annotation Processing */ - @Parameter + @Parameter(property = "maven.compiler.proc") private String proc; /**