pom.xml error

来源:互联网 发布:js金沙.com 编辑:程序博客网 时间:2024/06/08 08:12

mvn -version

Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-14T04:10:2
7+08:00)
Maven home: C:\Users\HN\Tools\apache-maven-3.3.1\bin\..
Java version: 1.7.0_75, vendor: Oracle Corporation
Java home: C:\Users\HN\Tools\jdks\jdk7\jre
Default locale: en_AU, platform encoding: GBK
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows"

Error stack: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from http://repo1.maven.org/maven2was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from/to central (http://repo1.maven.org/maven2)


Root cause: the *.lastUpdated in .m2 blocking maven to updates

Solution: 

1. delete all .m2/*.lastUpdated 

2. update maven project

0 0
原创粉丝点击