在eclipse中创建maven项目错误的解决方法:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-qu
當我們在ecipse安裝 maven插件后,?
(how to install maven plugin named m2eclipse)
You can install the lastest M2Eclipse release (1.7.0) by using the following update site from within Eclipse:
http://download.eclipse.org/technology/m2e/releases
創建maven項目時 會報錯如下:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.
?解決方法參見:http://stackoverflow.com/questions/15506043/create-a-maven-project-in-eclipse-complains-could-not-resolve-archetype
Assuming that you have your proxy settings correct, you may have missed out pointing Eclipse to the intended?settings.xml?file. This happens often when you have both Maven installed as a snap in, and an external installation outside Eclipse. You need to tell Eclipse which Maven installation it should use, and which settings.xml file it should be looking for.
First check that the settings.xml file contains your proxy settings.
Next, check that the user settings.xml file here contains your proxy settings.(配置全局倉庫 和 本地倉庫)
If you have made any changes, restart Eclipse.
Bingo, it works great for me at least.總結
以上是生活随笔為你收集整理的在eclipse中创建maven项目错误的解决方法:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-qu的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 基础笔试编程题(jz)
- 下一篇: spring boot 入门-使用spr