You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "anthonyvdotbe (via GitHub)" <gi...@apache.org> on 2026/09/27 11:52:29 UTC

[I] Any data to detect up-to-date classes must be written at the very end, after compilation has actually succeeded [maven-compiler-plugin]

anthonyvdotbe opened a new issue, #1140:
URL: https://github.com/apache/maven-compiler-plugin/issues/1140

   ### Affected version
   
   3.9.16
   
   ### Bug description
   
   What happened:
   
   * run `mvn clean verify`, compilation fails
   * run `mvn verify`, compilation is skipped ("Nothing to compile - all classes are up to date.") and tests fail with a `java.lang.NoClassDefFoundError` because not all classes were compiled in the first run
   


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Any data to detect up-to-date classes must be written at the very end, after compilation has actually succeeded [maven-compiler-plugin]

Posted by "efegokdemir (via GitHub)" <gi...@apache.org>.
efegokdemir commented on issue #1140:
URL: https://github.com/apache/maven-compiler-plugin/issues/1140#issuecomment-6044376651

   I’m taking this for the 3.x branch. The compile path currently calls `afterRebuildExecution` after the compiler returns even when compilation failed, so partial outputs can be recorded as the next incremental baseline. I’ll gate that bookkeeping on a successful compile and add a failed-then-successful regression test.


-- 
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