eclipse新建maven项目提示错误
错误信息:
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里加了代理。不管怎么弄,它就一直这个错误,求帮助
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
谢谢各位,已经解决了,但是原因不明,我之前有改过一次远程仓库地址,没办法我又找了个,然后就好了,估计还是网络的问题吧
我当初也报错了,不过我果断不用eclipse而改用IDEA了,eclipse是公司开发用的开发工具,IDEA是自己做Demo其他所用的开发工具。
我一直用的是自己下载的maven
回复
http://www.cnblogs.com/dingyingsi/p/3616802.html 我也遇到过这关问题,重新装下maven就行
我遇到过,很明显是eclipse的自带的maven插件问题,解决方法有二:
1.更新eclipse自带的maven插件
2.自己单独下一个maven插件,创建maven工程时使用自己下的maven插件。
推荐方法2
http://my.oschina.net/u/2312022/blog/493953
删除本地仓库,可能有jar冲突
对,怎么个不用系统模板?
回复
简单点说就是直接新建一个项目然后转换为maven项目。或者新建maven项目的时候不要选择那些模板什么的,选了也没有什么用。这些网上搜索一下都应该有步骤的,我空间里面的博客也有一些说明
你这个是在新建项目的时候的对不?你不用系统里面的“模板”试试看