| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Address post-merge review feedback on #1094: the intro paragraph described the cache too narrowly. setup-java caches both ~/.m2/repository and ~/.m2/wrapper/dists, and the default key hashes **/pom.xml plus .mvn/wrapper/maven-wrapper.properties and .mvn/extensions.xml, so changing wrapper/extensions files also invalidates the cache. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Updates the advanced usage documentation to more accurately describe how cache: maven works in actions/setup-java, specifically what directories are cached and which files are hashed to produce the cache key.
Changes:
| File | Description |
|---|---|
| docs/advanced-usage.md | Updates the Maven cache completeness section to align with the action’s actual default cache paths and cache-key hash inputs. |
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
| (`~/.m2/wrapper/dists`). The cache key is a hash of your Maven inputs — every | ||
| `**/pom.xml`, plus `**/.mvn/wrapper/maven-wrapper.properties` and | ||
| `**/.mvn/extensions.xml` — so changing any of those files (for example bumping | ||
| the wrapper version or editing core extensions) produces a new key and |
| Back | FazBrowse Home | New Git URL |
Description:
Follow-up to post-merge review feedback on #1094. The intro paragraph of the "Ensuring the Maven cache is complete" section described the cache: maven behavior too narrowly, which could leave readers unsure why changing wrapper/extensions files invalidates the cache or why wrapper downloads are cached too.
Updated the paragraph to match what the action actually does (verified against src/cache.ts):
Docs-only change; no behavior changes.
Related issue:
Addresses review feedback: #1094 (comment)
Check list: