Bottom Line: It is 100% safe to delete ~/.m2/wrapper/dists. Java projects using ./mvnw download standalone Maven zip distributions into this cache.
What is the Maven Wrapper Cache?
Located at ~/.m2/wrapper/dists (or %USERPROFILE%\.m2\wrapper\dists), when executing Maven Wrapper (./mvnw clean install), it downloads and unzips complete Apache Maven installations.
Can You Delete Maven Wrapper Dists?
✅ Yes, safe to delete.
- If you execute
./mvnwagain, it will automatically re-download the required Maven version.
How to Clear Maven Wrapper Cache
rm -rf ~/.m2/wrapper/dists/*
Discussion
Loading authentication...