问题描述:
使用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:Usersliujunguang.m2
epository)
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:Usersliujunguang.m2
epository)
如果还是不能创建或者问题没有解决可以安装下面的方法:
1.删除maven已经下载的文件路径:.m2 epositoryorgapachemaven
删除之后再试下,这时候如果看到有进度,只需要耐心等待就行了