Nemo

Nemo 关注TA

路漫漫其修远兮,吾将上下而求索。

Nemo

Nemo

关注TA

路漫漫其修远兮,吾将上下而求索。

  •  普罗旺斯
  • 负责帅就完事了
  • 写了1,496,113字

该文章投稿至Nemo社区   Java  板块 复制链接


Eclipse Maven新建项目报错解决

发布于 2016/03/21 15:16 5,134浏览 0回复 1,169

  使用Eclipse自带的Maven插件创建Web项目时报错:

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\liujunguang\.m2\repository)
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\liujunguang\.m2\repository)



解决:

1.

Eclipse -- > Window --> Preferences --> maven --> archetype -- >add remote catalog :

    在catalog File中填入:

    http://repo1.maven.org/maven2/archetype-catalog.xml

    Description: 随便填写一个英文名称.


2. 开始新建一个maven project.

    在select an Archetype的界面选择刚刚新建的catalog即可.





本文标签
 {{tag}}
点了个评