Skip to content

Instantly share code, notes, and snippets.

@milovtim
Created October 28, 2022 13:50
Show Gist options
  • Save milovtim/ebea24bdf11e23b0f988ef1222394dc1 to your computer and use it in GitHub Desktop.
Save milovtim/ebea24bdf11e23b0f988ef1222394dc1 to your computer and use it in GitHub Desktop.
Maven caches all failed download attempts. After you fixed issues (it's often ssl certificates problems) you need to drop old data about failures
find ~/.m2 -name "*.lastUpdated" \
-exec grep -q "Could not transfer" {} \; \
-print \
-exec rm {} \;
@milovtim
Copy link
Author

Works on Windows too in Git-Bash environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment