Skip to content

Instantly share code, notes, and snippets.

@Renkai
Created December 3, 2020 01:48
Show Gist options
  • Save Renkai/3ba42c9460dd02bfef168d85ae681c09 to your computer and use it in GitHub Desktop.
Save Renkai/3ba42c9460dd02bfef168d85ae681c09 to your computer and use it in GitHub Desktop.
remove outdated m2 cache
find ~/.m2/repository/ -atime +1 -iname '*.pom' -print0 | while read -d '' -r pom; do echo rm -rf "$(dirname $pom)"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment