You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by he...@apache.org on 2024/03/06 05:04:48 UTC

(maven-compiler-plugin) branch master updated: [MCOMPILER-548] JDK 21 throws annotations processing warning that can not be turned off (#200)

This is an automated email from the ASF dual-hosted git repository.

henning pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 74cfc72  [MCOMPILER-548] JDK 21 throws annotations processing warning that can not be turned off (#200)
74cfc72 is described below

commit 74cfc72acae4f55708bca189b2170167e83df6b3
Author: Henning Schmiedehausen <he...@schmiedehausen.org>
AuthorDate: Tue Mar 5 21:04:43 2024 -0800

    [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 <s....@gmail.com>
---
 .../java/org/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 538b7ff..78803f7 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 {
      * <ul>
      * <li><code>none</code> - no annotation processing is performed.</li>
      * <li><code>only</code> - only annotation processing is done, no compilation.</li>
+     * <li><code>full</code> - annotation processing and compilation.</li>
      * </ul>
      *
+     * <code>full</code> is the default. Starting with JDK 21, this option must be set explicitly.
+     *
      * @since 2.2
      * @see <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javac.html#option-proc">javac -proc</a>
      * @see <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javac.html#annotation-processing">javac Annotation Processing</a>
      */
-    @Parameter
+    @Parameter(property = "maven.compiler.proc")
     private String proc;
 
     /**