You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker: drop ineffective wrapper-jar exclusion from poms stage
The poms stage removed `.mvn/wrapper/maven-wrapper.jar` to try to keep the dependency-download layer stable across wrapper-jar changes. It didn't work: the build stage copies `.mvn/wrapper` (jar included) before the `COPY --from=poms` and the dependency `RUN` steps, so a wrapper-jar change still invalidates every later layer regardless of what poms emits.
Making the dependency layers independent of the wrapper jar would mean giving up the offline prefetch or restructuring how Maven is invoked, and the wrapper jar changes rarely enough that it isn't worth that complexity.
Revert the exclusion and correct the comments to describe the layer's actual cache inputs.
0 commit comments