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
{{ message }}
Repository navigation
Cache Maven distribution downloaded by Maven Wrapper #448
The cache key should probably be derived from the .mvn/wrapper/maven-wrapper.properties file (see documentation), similar to how it is done already for the Gradle Wrapper.
The directory to cache is ~/.m2/wrapper/dists (see documentation).
Justification:
Without caching, projects using the Maven Wrapper would have to download the Maven distribution (~8MB) every time the project is built.
For Gradle the setup-java action already supports caching the Gradle distribution downloaded by the wrapper:
It looks like Sonatype started enforcing stricter traffic policies when downloading the Maven distros. I have spotted some HTTP 429s when downloading from https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/....
It would be nice if setup-java could cache them properly.
Activity
IvanZosimov commentedon Jan 30, 2023
Hi, @Marcono1234 👋 Thank you for the feature request! We will investigate it and get back to you with our decision as soon as possible.
yeikel commentedon Feb 16, 2023
@IvanZosimov I submitted #453 for this
fadma10 commentedon Apr 20, 2023
it's runing
seepine commentedon Jul 14, 2023
@yeikel Hi, maybe you can support gradlew also, this is really useful of cache mvnw and gradlew
yeikel commentedon Jul 14, 2023
I think that we should track that separately
seepine commentedon Jul 14, 2023
You are right, maybe not work of cache gradlew due to excessive cache size, i find it work just now.
LorenzoBettini commentedon Nov 28, 2025
So this hasn't been solved yet?
ppalaga commentedon May 13, 2026
It looks like Sonatype started enforcing stricter traffic policies when downloading the Maven distros. I have spotted some HTTP 429s when downloading from
https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/....It would be nice if
setup-javacould cache them properly.add Maven Wrapper cache coverage for PR actions#448