Myeclipse导入jeecg后pom.xml出错

来源:互联网 发布:淘宝dnfcdkey码怎么来 编辑:程序博客网 时间:2024/06/02 15:59

1------

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

---原因是maven的plugin并未下载到本地。

查看..\repository\org\apache\maven\plugins\maven-compiler-plugin\2.3.2中发现只有一个maven-surefire-plugin-2.3.2.pom.lastUpdated

而并没有maven-surefire-plugin-2.3.2.jar

解决办法:
1.删除所有以lastUpdated结尾的文件
2.右键点击project -> Maven - Update Dependencies(Update Project...)

如果点击更新后发现

<span style="font-family: Tahoma; font-size: 14px; line-height: 24px; orphans: 2; widows: 2; background-color: rgb(222, 242, 230);">..</span><span style="font-family: Tahoma; font-size: 14px; line-height: 24px; orphans: 2; widows: 2; background-color: rgb(222, 242, 230);">\repository\org\apache\maven\plugins\maven-compiler-plugin\2.3.2</span>
下还是没有maven-surefire-plugin-2.3.2.jar
去http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.3.2/
下载

maven-surefire-plugin-2....jar 
maven-surefire-plugin-2....jar.sha1 
maven-surefire-plugin-2....pom 
maven-surefire-plugin-2....pom.sha1

0 0