You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "cowwoc (via GitHub)" <gi...@apache.org> on 2025/10/05 22:23:15 UTC
Re: [I] Maven Build Cache Extension incorrectly handles --module-version compiler arguments for Java modules, causing cache invalidation on every build despite no source code changes [maven-build-cache-extension]
cowwoc commented on issue #375:
URL: https://github.com/apache/maven-build-cache-extension/issues/375#issuecomment-3369379985
PR #389 implements default compiler property tracking that should help with this issue. The extension now tracks `source`, `target`, and `release` properties by default for maven-compiler-plugin.
However, your specific case with `--module-version` in `compilerArgs` may need additional tracking. The current implementation doesn't include `compilerArgs` in the defaults to avoid overly aggressive cache invalidation. You may need to add:
```xml
<executionControl>
<reconcile>
<plugins>
<plugin artifactId="maven-compiler-plugin" goal="compile">
<reconciles>
<reconcile propertyName="compilerArgs"/>
</reconciles>
</plugin>
</plugins>
</reconcile>
</executionControl>
```
This would merge with the defaults and also track your `compilerArgs` containing `--module-version`.
--
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