当前位置: 首页 > 工具软件 > Transfer.Core > 使用案例 >

解决Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://maven.al

毋玺
2023-12-01

一、异常类型

  • 在创建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

 类似资料: