[转]
最近升级springframework版本(3.1.2->3.2.5),打印版本依赖的时候报错
’failed to collect dependencies’,知道是依赖问题,不知道怎么解决,百度了一下,通过如下方式解决:
mvn dependency:tree > tree.txt -U -Dmaven.test.skip=true
-U,–update-snapshots Forces a check for updated releases and snapshots on remote.
初步分析可能是本地的maven repo有问题,通过-U命令强制从远程仓库重新下载相关的dependency就好了,如果工程中的单测错误较多可以加上-Dmaven.test.skip=true。
maven error ’failed to collect dependencies’
猜你喜欢
转载自hugh-wang.iteye.com/blog/2395775
今日推荐
周排行