Skip to content

fix: cache Maven wrapper binary to prevent transient CI failures - #34578

Draft
DanielFran with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-check-vue-job
Draft

fix: cache Maven wrapper binary to prevent transient CI failures#34578
DanielFran with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-check-vue-job

Conversation

Copilot AI commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

The check-vue CI job (vue-default-additional) failed with a transient wget error downloading apache-maven-3.9.16-bin.zip from Maven Central during build-jhipster-bom. The root cause: ~/.m2/wrapper/dists (Maven wrapper binary) was never cached — only ~/.m2/repository was — so every CI run required a live download from Maven Central.

Changes

  • vue.yml, angular.yml, react.yml: Add actions/cache@v4 for ~/.m2/wrapper/dists immediately after setup-runner. On cache hit the Maven wrapper binary is already present; on miss it downloads once and saves for subsequent runs.

  • .github/actions/build-cache/action.yml: Add the same actions/cache@v4 step before cache-java-dependencies so the nightly cache build also warms this cache.

Cache key uses hashFiles on the Maven wrapper properties template to invalidate automatically when the Maven version is bumped:

- uses: actions/cache@v4
  with:
    path: ~/.m2/wrapper/dists
    key: ${{ runner.os }}-jhipster-mvnw-${{ hashFiles('generator-jhipster/generators/java-simple-application/generators/maven/templates/.mvn/wrapper/maven-wrapper.properties') }}

Copilot AI changed the title [WIP] Fix failing GitHub Actions job check-vue fix: cache Maven wrapper binary to prevent transient CI failures Aug 18, 2026
Copilot AI requested a review from DanielFran August 18, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants