mac系统
find ~/.m2/repository -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;
windows系统
cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i
mac系统
find ~/.m2/repository -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;
windows系统
cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i