一、異常類型
- 在建立maven時,發現pom.xml檔案報出下面的錯誤。
-
錯誤異常:Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from/to nexus (http://maven.aliyun.com/nexus/content/groups/public): maven.aliyun.com
二、解決方法
- (1)右擊pom.xml->Run As->Maven Clean
- (2) pom.xml->Run As->Maven Install