Safe to Delete

Apache Maven Wrapper Cache (~/.m2/wrapper/dists)

Quick Answer: The Maven Wrapper folder caches downloaded Maven zip distribution binaries. Deleting old wrapper dists is safe.

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 ./mvnw again, it will automatically re-download the required Maven version.

How to Clear Maven Wrapper Cache

rm -rf ~/.m2/wrapper/dists/*

Discussion

Loading authentication...

Related in developer

The AI Engineer's Model Disk Cleanup Guide: Hugging Face, Ollama & PyTorch

The ultimate 1,200-word field guide for AI developers and local LLM hobbyists to reclaim 200GB+ from Ollama, Hugging Face, PyTorch, and vLLM model weights.

Safe to Delete

Android Studio System Index Cache (AndroidStudio Cache)

Android Studio caches Gradle project indexes, VFS caches, and compiler artifacts. Invalidate and clear is safe.

Safe to Delete

Ansible Automation Temp & Fact Cache (~/.ansible/tmp)

Ansible stores temporary playbook execution modules and target host fact JSON caches in ~/.ansible/tmp. Clearing Ansible tmp is safe.

Safe to Delete
Back to all files