创建 maven maven-archetype-quickstart 项目抱错问题解决方法

问题:

eclipse装m2eclipse的时候装完后创建项目的时候报错:

Unable to create project from archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE


解决方法:

  1. Open Window > Preferences
  2. Open Maven > Archetypes
  3. 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项目




转自:https://www.cnblogs.com/qiyebao/p/5226508.html





猜你喜欢

转载自blog.csdn.net/chuyouyinghe/article/details/79619320