WebMagic编译时提示Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.18的解决方法

问题描述:
   从http://git.oschina.net/flashsword20/webmagic 下载最新代码,按照http://webmagic.io/docs/zh/posts/ch3-build-source/ 说明的方法导入进eclipse,编译然后就提示如下错误:
   Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.18 from https://repo.maven.apache.org/maven2

解决方法:
    1. 找到目录,~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin
    2. 找到2.18子目录,并删除;
    3. 然后在导入的webmagic-parent工程上右键->maven->update projects,在弹出的对话框中勾选 force update of snapshots/releases

问题解决
posted @ 2017-03-20 21:52  拿走不谢  阅读(6102)  评论(0编辑  收藏  举报