問題描述:
從
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
問題解決