zabetak opened a new pull request, #5751: URL: https://github.com/apache/hive/pull/5751
### What changes were proposed in this pull request? Disable unnecessary annotation processor to avoid maven warnings, exploit compile avoidance, and avoid cryptic compilation errors. ### Why are the changes needed? Except iceberg, all the other modules do not need annotation processors. However, the log4j-core dependency contains an annotation processor and this has impact on the build leading to maven WARNING messages and the deactivation of compile avoidance. ``` [WARNING] The following annotation processors were found on the classpath: [org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor], provided by /home/someuser/.m2/repository/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3.jar Compile avoidance has been deactivated. Please use the maven-compiler-plugin version 3.5 or above and use the <annotationProcessorPaths> configuration element to declare the processors instead. If you did not intend to use the processors above (e.g. they were leaked by a dependency), you can use the <proc>none</proc> option to disable annotation processing. For more information see https://gradle.com/help/maven-extension-compile-avoidance. ``` Apart from compile avoidance the use of annotation processing can have other side effects during the build and it can even lead to cryptic compilation failures. ### Does this PR introduce _any_ user-facing change? No ### Is the change a dependency upgrade? No ### How was this patch tested? ``` mvn clean install -DskipTests -Pitests | grep "annotation processors" ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org