Add a plugin to the pom.xml to suppress a warning about annotation processing (to reduce noise in the maven output).
Details
Starting with Java 21, the following warning is produced during the compile phase unless the -proc:full is passed to the compiler:
[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.
In this PR, we add the maven-compiler-plugin to pass this argument to the java compiler, so that this message does not appear.
What to do:
Do a mvn clean compile and see if the warning appears. If not, close the issue; it isn't needed.
If it does appear, add this to the pom.xml in the plugins section:
Summary
Add a plugin to the pom.xml to suppress a warning about annotation processing (to reduce noise in the maven output).
Details
Starting with Java 21, the following warning is produced during the compile phase unless the -proc:full is passed to the compiler:
In this PR, we add the maven-compiler-plugin to pass this argument to the java compiler, so that this message does not appear.
What to do:
mvn clean compile
and see if the warning appears. If not, close the issue; it isn't needed.mvn clean compile
again and see if the warning goes away. If it does, your work here is done; do a PR.