Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-548

JDK 21 throws annotations processing warning that can not be turned off

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.11.0
    • 3.13.0
    • None

    Description

      maven compiler plugin 3.11 on Java 21 reports

      [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.

      However, the <proc> option only supports "none" and "proc", not "full" (which is the implicit default).

      Adding this through a compiler option:

      <configuration>
      <compilerArgs>
      <arg>-proc:full</arg>
      </compilerArgs>
      </configuration>

      fixes this warning. Adding "full" as a value for the compiler plugin would fix it, too.

      Attachments

        Issue Links

          Activity

            People

              henning Henning Schmiedehausen
              henning Henning Schmiedehausen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: