Failure to transfer org.apache.maven.surefire:surefire:pom:2.10 解决办法
程序员文章站
2024-02-23 09:56:22
...
问题报错:
failure to transfer org.apache.maven.surefire:surefire:pom:2.10 from http://repo.maven.apache.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.
Originalerror:Couldnottransferartifactorg.apache.maven.surefire:surefire:pom:2.10 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000
错误原因:
org.apache.maven.surefire 没有配置 和 http://repo.maven.apache.org/maven2 连接不上的问题
解决方式:
在pom.xml文件中 注意配置如下内容:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7</version>
</plugin>
</plugins>
原贴地址:
http://blog.csdn.net/dongweijhzhangli/article/details/70495622
上一篇: Swift中格式化日期
下一篇: java实现希尔排序算法