解决Maven的Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart

  • Post author:
  • Post category:其他


eclipse配置好了Maven,创建maven-archetype-quickstart项目报错如下:

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories.

解决方法如下:

1.下载最新版maven-archetype-quickstart-1.1.jar(百度一搜就有…)

2.命令行到下载目录下执行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

无所谓把该jar包放到Maven的lib目录中….

编译成功就可以在Eclipse中创建maven-archetype-quickstart 项目成功了…

还可以参考:


http://blog.csdn.net/xummgg/article/details/50655382