zabetak opened a new pull request, #6221:
URL: https://github.com/apache/hive/pull/6221

   ### What changes were proposed in this pull request?
   1. Disable annotation processors from all modules that do not need them.
   2. Decouple immutables processor from errorprone processor and move 
immutables processor in iceberg-catalog module since it is only user there.
   ### 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?


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to