批量删除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\repository
for /r %i in (*.lastUpdated) do del %i

posted @ 2016-03-16 17:47  Pekkle  阅读(184)  评论(0编辑  收藏  举报