批量删除Maven中失败的下载项

[摘自] http://stackoverflow.com/questions/5074063/maven-error-failure-to-transfer


Remove all your failed downloads:


Linux:

find ~/.m2  -name "*.lastUpdated" -exec grep -q "Could not transfer" {} ; -print -exec rm {} ;


Windows:

cd %userprofile%.m2
epository
for /r %i in (*.lastUpdated) do del %i

原文地址:https://www.cnblogs.com/pekkle/p/6568706.html