创建maven的web工程出现pom文件报错

来源:互联网 发布:收购淘宝卖家账号 编辑:程序博客网 时间:2024/05/16 02:59

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. Original error:
Could not transfer artifact
org.apache.maven.surefire:surefire:pom:2.10 from/to central
(http://repo.maven.apache.org/maven2): java.net.ConnectException:
connection timed out to
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.10/surefire-2.10.pom

如果出现类似问题,1、检查maven的本地仓库:搜索“*.lastUpdated”文件,请将该文件删除;
2、右键点击project -> Maven - Update Dependencies;同时选择force update可以解决此类问题。

0 0