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 <[email protected]>
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

+4-1
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)