Manas-Dikshit opened a new pull request, #1017: URL: https://github.com/apache/maven-compiler-plugin/pull/1017
### Summary This PR fixes issue [#1006](https://github.com/apache/maven-compiler-plugin/issues/1006), where the Maven Compiler Plugin did not execute annotation processors properly when `<proc>only</proc>` was set. Previously, the plugin exited early with the message "Nothing to compile - all classes are up to date," which stopped annotation processors from running. ### Changes - Updated the `execute()` method to make sure that when `<proc>only</proc>` is set, the compiler runs even if no Java source files have changed. - Added a clear log message to show that annotation processing is taking place without regular compilation. ### Rationale Annotation processors like Log4j’s `PluginProcessor` must run independently of source compilation. This change makes the plugin behave like `javac -proc:only` and clears up confusion from misleading log messages. ### Impact - No change in behavior for standard compilation. - Improves correctness and clarity when using `<proc>only</proc>`. - Backward compatible and safe for existing builds. ### Verification - Verified locally with a project using Log4j’s annotation processor. - Confirmed the generated sources appear as expected in `target/generated-sources/annotations`. - All existing integration tests pass with `mvn -Prun-its verify`. --- Please review and let me know if you want me to add an integration test for this specific use case. -- 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]
