问题描述:
从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
epositoryorgapachemavenpluginsmaven-surefire-plugin
2. 找到2.18子目录,并删除;
3. 然后在导入的webmagic-parent工程上右键->maven->update projects,在弹出的对话框中勾选 force update of snapshots/releases
问题解决