You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2024/03/10 17:10:00 UTC

[jira] [Assigned] (MCOMPILER-548) JDK 21 throws annotations processing warning that can not be turned off

     [ https://issues.apache.org/jira/browse/MCOMPILER-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Slawomir Jaranowski reassigned MCOMPILER-548:
---------------------------------------------

    Assignee: Henning Schmiedehausen

> JDK 21 throws annotations processing warning that can not be turned off
> -----------------------------------------------------------------------
>
>                 Key: MCOMPILER-548
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-548
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.11.0
>            Reporter: Henning Schmiedehausen
>            Assignee: Henning Schmiedehausen
>            Priority: Major
>             Fix For: 3.13.0
>
>
> maven compiler plugin 3.11 on Java 21 reports
> {quote}
> [INFO] Annotation processing is enabled because one or more processors were found
>   on the class path. A future release of javac may disable annotation processing
>   unless at least one processor is specified by name (-processor), or a search
>   path is specified (--processor-path, --processor-module-path), or annotation
>   processing is enabled explicitly (-proc:only, -proc:full).
>   Use -Xlint:-options to suppress this message.
>   Use -proc:none to disable annotation processing.
> {quote}
> However, the {{<proc>}} option only supports "none" and "proc", not "full" (which is the implicit default). 
> Adding this through a compiler option:
> {quote}
> <configuration>
>   <compilerArgs>
>     <arg>-proc:full</arg>
>   </compilerArgs>
> </configuration>
> {quote}
> fixes this warning. Adding "full" as a value for the compiler plugin would fix it, too.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)