Maven使用笔记,错误Failure to Transfer后处理

 

当有未更新成功的项,M3会以后缀为.lastUpdated保存未更新成功的项

执行下面的操作可清楚这些项

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

Windows
cd <user-directory>\.m2\repository
for /r %i in (*.lastUpdated) do del %i

参考url:https://dzone.com/articles/how-resolve-mavens-failure

 

posted @ 2015-12-08 21:01  JQShi  阅读(284)  评论(0)    收藏  举报