efegokdemir opened a new pull request, #1136: URL: https://github.com/apache/maven-compiler-plugin/pull/1136
## Summary Fixes #1006. When `<proc>only</proc>` is configured, the compiler execution is dedicated to annotation processing. Incremental source-change detection must not skip that execution merely because the Java sources are unchanged. The fix makes `proc=only` use the existing `NONE` incremental mode, so all sources remain available to javac and the processor runs on every execution. A unit regression test covers two executions with unchanged sources. ## Testing - `mvn test` — passed (17 tests) - `mvn -Dtest=CompilerMojoTestCase#testCompilerProcOnlyRunsWhenSourcesAreUnchanged test` — passed - `mvn spotless:check` — passed - `git diff --check` — passed - `mvn verify` — attempted; the repository's dependency analysis failed while parsing the intentionally minimal `compiled.class` emitted by the existing test compiler stub (`Index 6 out of bounds for length 0`). The test suite itself passed before that lifecycle step. ## Contribution checklist - [x] This pull request addresses one issue. - [x] A regression test fails on the unchanged implementation and passes with this change. - [x] The commit includes a DCO sign-off and a verified SSH signature. - [x] The contribution is licensed under the Apache License 2.0. ## AI assistance Codex assisted with repository analysis, implementation, test authoring, and validation under human supervision. The submitted change and test results have been reviewed for correctness by the human contributor. -- 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]
