Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of t

简介:

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\Administrator\.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\Administrator\.m2\repository)

在创建maven工程时有时候会出现这类异常

网上的解决方法有很多,但是每一种情况是不一样的,我试了几个方法,没有见效,如果已经有maven 工程了,我的操作是换一个workspace 工作空间就ok了


如图,三个切换成哪一个都可以,前提时切换到的工作空间没有maven 工程。

然后在该工作区间创建maven web工程,如果不想用该新的工作空间,则直接切换到原来的工作空间,点击import 导入到自己常用的工作区间就ok了。

相关文章
|
4天前
|
Java
springboot打包错误:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resource
springboot打包错误:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resource
22 0
|
6月前
|
Java Maven
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4
|
7月前
|
Java 应用服务中间件 Apache
Apache Maven项目的搭建与部署
Apache Maven项目的搭建与部署
209 0
|
4天前
|
存储 Java 测试技术
玩转Apache Maven
玩转Apache Maven
57 0
|
6月前
|
Java 关系型数据库 Apache
Apache Maven简介&安装及系统坏境配置&eclipse配置Apache Maven---详细介绍
Apache Maven简介&安装及系统坏境配置&eclipse配置Apache Maven---详细介绍
69 0
|
8月前
|
XML Java Apache
Apache Maven:从构建到部署,一站式解决方案
Apache Maven:从构建到部署,一站式解决方案
168 0
|
9月前
|
Java Maven Android开发
成功解决maven打war包报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2
成功解决maven打war包报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2
|
12月前
|
Java Maven Android开发
Maven-Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:jar:1.1
Maven-Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:jar:1.1
70 0
|
Java Maven
org.apache.maven.plugins:maven-resources-plugin:2.4.3
在myeclipse上创建maven可能会遇到 org.apache.maven.plugins:maven-resources-plugin:2.4.3 org.apache.maven.plugins:maven-jar-plugin:2.3.1 org.apache.maven.maven-surefire-plugin:2.7.1 等错误那么这是什么原因呢?
126 0
org.apache.maven.plugins:maven-resources-plugin:2.4.3

推荐镜像

更多