eclipse装m2eclipse的时候装完后创建项目的时候报错:
Unable to create project from archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE

解决方法:
- Open Window > Preferences
- Open Maven > Archetypes
- Click 'Add Remote Catalog' and add the following:
- Catalog File: http://repo1.maven.org/maven2/archetype-catalog.xml
- Description: maven catalog

问题:
eclipse装m2eclipse的时候装完后创建项目的时候报错:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories.
解决方法:
步骤一:
从http://maven.oschina.net/content/groups/public/org/apache/maven/archetypes/maven-archetype-quickstart/ 下载最新版maven-archetype-quickstart-1.1.jar

步骤二:
命令行到下载目录下执行
mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=maven-archetype-quickstart -Dversion=1.1 -Dpackaging=jar -Dfile=maven-archetype-quickstart-1.1.jar

重新打开发工具创建maven项目

本文介绍了解决在Eclipse中使用m2eclipse插件创建Maven项目时出现的无法从指定仓库解析archetype的问题。提供了两种解决方法:一是通过配置远程catalog文件,二是手动下载并安装指定版本的maven-archetype-quickstart。

994

被折叠的 条评论
为什么被折叠?



