STS创建Maven项目报错

来源:互联网 发布:传奇单机版物品数据库 编辑:程序博客网 时间:2024/05/16 06:11

Description Resource Path Location Type 
Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-war-plugin:pom:2.1.1 from http://repo1.maven.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.plugins:maven-war-plugin:pom:2.1.1 from/to central (http://repo1.maven.org/maven2): ConnectException first-maven Unknown Maven Problem 



Soultion

<mirrors><!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://my.repository.com/repo/path</url> </mirror> --><mirror><id>central</id><name>Maven Repository Switchboard</name><url>http://repo2.maven.org/maven2</url></mirror></mirrors> 

参考:http://www.iteye.com/problems/62007

0 0