maven-cache-cleanup

Utility to purge timestamped snapshots from Maven repositories

Install

All systems
curl cmd.cat/maven-cache-cleanup.sh
Debian Debian
apt-get install maven-cache-cleanup
Ubuntu
apt-get install maven-cache-cleanup
image/svg+xml Kali Linux
apt-get install maven-cache-cleanup
Windows (WSL2)
sudo apt-get update sudo apt-get install maven-cache-cleanup

maven-cache-cleanup

Utility to purge timestamped snapshots from Maven repositories

Maven 3 dropped support for non-unique snapshot versions, which had the side effect of filling up Maven caches on developer machines and on CI build hosts. The Maven Cache Cleanup utility scans a specified Maven cache directory for snapshot versions and deletes all but the latest version of the timestamped artifacts.