首页 新闻 会员 周边 捐助

eclipse新建maven项目报错

0
[待解决问题]

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0
Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://repository.apache.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of maven-archetype-webapp-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to maven-archetype-webapp-repo (https://repository.apache.org/content/groups/public): repository.apache.org
Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://repository.apache.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of maven-archetype-webapp-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to maven-archetype-webapp-repo (https://repository.apache.org/content/groups/public): repository.apache.org
Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://repository.apache.org/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of apache has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to maven-archetype-webapp-repo (https://repository.apache.org/content/groups/public): repository.apache.org
Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://repository.apache.org/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of apache has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to maven-archetype-webapp-repo (https://repository.apache.org/content/groups/public): repository.apache.org

 

网上相似错误,那个地址都是本地仓库,而我的显示是远程仓库地址,远程地址在浏览器也能直接访问到,也在settings.xml里加了代理。不管怎么弄,它就一直这个错误,求帮助

无-解的主页 无-解 | 菜鸟二级 | 园豆:202
提问于:2016-08-08 17:06
< >
分享
所有回答(1)
0

本地出现了错误,把当前用户的~/.m2/org/apache/maven/archetypes/下的对应文件删除,重新下载一次就好了

2012 | 园豆:21645 (高人七级) | 2016-08-09 08:16

这个方法试过的,不行

支持(0) 反对(0) 无-解 | 园豆:202 (菜鸟二级) | 2016-08-09 09:39
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册