Skip to content

Commit 74cfc72

Browse files
[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.jaranowski@gmail.com>
1 parent f85aa27 commit 74cfc72

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,16 @@ public abstract class AbstractCompilerMojo extends AbstractMojo {
294294
* <ul>
295295
* <li><code>none</code> - no annotation processing is performed.</li>
296296
* <li><code>only</code> - only annotation processing is done, no compilation.</li>
297+
* <li><code>full</code> - annotation processing and compilation.</li>
297298
* </ul>
298299
*
300+
* <code>full</code> is the default. Starting with JDK 21, this option must be set explicitly.
301+
*
299302
* @since 2.2
300303
* @see <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javac.html#option-proc">javac -proc</a>
301304
* @see <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javac.html#annotation-processing">javac Annotation Processing</a>
302305
*/
303-
@Parameter
306+
@Parameter(property = "maven.compiler.proc")
304307
private String proc;
305308

306309
/**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy