Skip to content

Commit

Permalink
[MCOMPILER-548] JDK 21 throws annotations processing warning that can…
Browse files Browse the repository at this point in the history
… 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]>
  • Loading branch information
hgschmie and slawekjaranowski authored Mar 6, 2024
1 parent f85aa27 commit 74cfc72
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit 74cfc72

Please sign in to comment.