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了。

时间: 2024-09-16 07:53:03

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-quickstart

  之前都是命令行创建,今天用eclipse装m2eclipse的时候装完后创建项目的时候报错: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories. 解决方式: 1.从http://maven.oschina.net/content/groups/public/org/apache/ma

解决:Could not resolve archetype org.apache.maven.archetypes

装了apache-maven-3.2.3-bin 并做好配置,在eclipse中新建maven工程时报错: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories. Could not resolve artifact Missing org.apache.maven.archetypes:m

自定义项目脚手架- Maven Archetypes

在上篇Intellij修改archetype Plugin配置 中我们已经简单介绍了关于archetype的作用. 简单来说maven archetype插件就是创建项目的脚手架,你可以通过命令行或者IDE集成简化项目创建的工作.例如: org.apache.maven.archetypes:maven-archetype-quickstart org.apache.maven.archetypes:maven-archetype-site org.apache.maven.archetypes

【maven】 maven的setting.xml文件的详解

1       Maven的安装        安装Maven之前要确保已经安装好了jdk,并且配置好了环境变量JAVA_HOME.具体安装步骤如下: 从apache网上下载maven项目的压缩包.下载地址为:http://maven.apache.org/download.html.比如现在最新的Maven版本是3.0.4,那么我下载好的安装文件就是apache-maven-3.0.4.zip. 将下载后的压缩包解压到Maven的安装目录,比如说是D:\\develop,那么解压后就是D:\\

maven 创建maven项目出错求大神

问题描述 maven 创建maven项目出错求大神 这是怎么回事啊 解决方案 maven 创建web项目出错myeclipse9 创建maven工程出错myeclipse2013 创建maven工程出错 解决方案二: 哪位大神知道的来教教我啊 解决方案三: 下载那个jar又报这个错,什么原因啊

参数传递-【Maven】 maven的参数透传。 测试code中引用pom.xml 的参数

问题描述 [Maven] maven的参数透传. 测试code中引用pom.xml 的参数 需求: 1, code 中有一些参数需要经常改变其指定值. 2, 希望在pom.xml(或地方存储这些值) 3, 在使用mvn 执行时使用 mvn -DXXX=XXXX 替换pom.xm中的参数值. 问题: 查阅资料发现, mvn -DXXX 一般都是替换pom.xml 中的引用值, 且替换的值都是mvn执行插件或功能值.但我在工程code 中该怎么引用pom.xml 中指定的值呢? pom.xml 中设

初学maven(2)-maven/artifactory/m2eclipse安装全过程

前段时间研究过一下maven,中途因为工作忙搁置了一段时间,重新再看时发现安装过程基本忘光.只好找资料看然后再来一遍,将maven,artifactory和m2eclipse安装使用的全过程记录整理出来,备忘.另外我想这些资料应该比较适合maven的入门新手,照做一遍就可以完成三个东西的安装设置,然后就可以学习和使用了. 一. 安装maven 安装官方标准的安装方式(http://maven.apache.org/download.html#Installation)安装,步骤如下 1. 下载解

国内阿里maven仓库镜像maven配置文件maven仓库速度快

国内连接maven官方的仓库更新依赖库,网速一般很慢,收集一些国内快速的maven仓库镜像以备用. 最新更新:2016年11月11日 18:05:40 阿里云提供Maven私服,我把配置文件贴一下,自己放在maven的conf下就行,setting.xml https://github.com/ae6623/Zebra/blob/master/maven-repo-settings-ali.xml <?xml version="1.0" encoding="UTF-8&

【错误解决】[Maven]使用Maven配置Jstl出现异常:The absolute uri: http://java.sun.com/jsp/jstl/core cannot...

转载请注明出处:http://blog.csdn.net/qq_26525215 本文源自[大学之旅_谙忆的博客] 也就是出现如下错误: 严重: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or