You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "desruisseaux (via GitHub)" <gi...@apache.org> on 2026/10/03 09:09:57 UTC
Re: [PR] Make rebuild-on-change the default incremental compilation strategy [maven-compiler-plugin]
desruisseaux commented on PR #1143:
URL: https://github.com/apache/maven-compiler-plugin/pull/1143#issuecomment-5967563102
Just a clarification on the following:
> Notably, the annotation-processor path already defaults to rebuild-on-change — so the behavior was inconsistent: safe with processors, potentially unsafe without.
In my understanding, the rational for rebuilding all classes when annotation processing is present was not for safety. It is because annotation processor can collect information about annotated elements, and therefore may have incomplete information if we don't rebuild all. Example: a `@IncludeMeInSomeList` annotation and a processor which, after compilation, generates a file with all elements having this annotation. The processor needs all source files at compilation time even if these files are not impacted by any change. Even if we implemented an accurate tracking of dependencies ("IDE-style incremental build"), we would still need to rebuild all files when an annotation processor is present.
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org