QUESTION:Maven:构建web工程出现Failed to execute goal org.apache:maven-archetype-plugin:3.1.1:generate (default-cli)

ANSWER:

在无意间删除了一个工程后,重新构建web工程时出现该问题,一时间煞费苦心,看了好多都是说jre路径问题,但是我试了并不起什么作用。

网上的解决方法有时候并不管用,

索性,我把maven该模板删除后重新下载。

1.找到你安装的maven的仓库路径:org\apache\maven\archetypes删除掉maven-archetype-webapp文件。2.打开IDE重新创建带模板的web工程。

Maven:构建web工程出现Failed to execute goal org.apache:maven-archetype-plugin:3.1.1:generate (default-cli)相关推荐

  1. 针对maven install 报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1 解决方案...

    项目运行环境:jdk1.8+tomcat8 maven install 时报错:Failed to execute goal org.apache.maven.plugins:maven-compil ...

  2. 【maven install报错】Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war

    maven install报错如下: [INFO] Scanning for projects... [INFO] Downloading: http://xxx.xx.xx.x:xxxx/nexus ...

  3. 【maven install报错】Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile

    maven install之后报的错误如下: [INFO] Scanning for projects... [INFO] Downloading: http://xxx.xxx.xxx.xxx:xx ...

  4. maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test

    mvn compile  没有问题,mvn package的时候报如下错误: Failed to execute goal org.apache.maven.plugins:maven-surefir ...

  5. 解决maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 一.报错经历: 今天使用eclipse通过maven install打war包的时候,出现了下图所示 ...

  6. maven项目打包报错Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default

    原因:缺少maven打包插件 解决办法:在pom.xml中加入如下 <build><plugins><plugin><groupId>org.apach ...

  7. Maven搭建webapp报错Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generat

    在使用maven模板搭建webapp项目时,项目搭建失败 报错如下: 这里显示搭建项目的脚手架和插件等未找到 解决办法: 我们找到自己的maven的仓库,找到搭建webapp的xml文件,我的mave ...

  8. 解决Maven打包怪异异常:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resource...

    右键选择项目--->Maven--->Update Project 转载于:https://www.cnblogs.com/luojie1216/p/10565258.html

  9. Maven打包时报Failed to execute goal org.apache.maven.plugins:maven-war-plugin:解决方案

    问题现象: 用Maven打包时,报Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war错误. 原因分析: 打 ...

最新文章

  1. centos命令大全
  2. MyBatis框架学习:<select>节点中的resultType和resultMap属性
  3. shell中echo使用单引号时输出单引号
  4. mysql锁简谈_mysql锁简谈
  5. 通过环境变量注入的方式启动SAP Spartacus B2B模块
  6. (数据库系统概论|王珊)第十一章并发控制-第一节:并发控制概述
  7. 花瓣长度和花瓣宽度散点图鸢尾花_[创意榫卯结构] 形如花瓣的燕尾榫,不但美,而且非常牢固...
  8. 想学python买什么书好-学python3什么书好
  9. Perl篇:常用调试命令
  10. 我从Web前端开发转到网页游戏开发
  11. 古体字与简体字对照表_简体字和繁体字对照表
  12. 手机上怎么换证件照底色?手机一键照片改背景颜色
  13. 任正非:人感知到自己的渺小,行为才开始伟大
  14. 由读写经济学文章所想到的
  15. Cocos2D结合CoreGraphics实现RPG人物中空黑洞吸入效果
  16. 武汉黑马培训python
  17. 数据库——ltrim()和rtrim()函数
  18. “乐高式”自动驾驶研发开放平台,让开发更简单灵活高效
  19. php实现mysql分表,php实现的mysql分表方案(水平切分)
  20. MATLAB与高等数学--获得渐进线

热门文章

  1. 搞懂C++为什么难学,看这篇就够了!
  2. Cs代码写在html页面哪里,当用于在details.cshtml页面上查看时,我用什么代码来查看模型中的项目列表?...
  3. python 随机名言_如何用简易代码自动生成经典语录
  4. 单片机实现环形队列_稀疏数组和队列(二)
  5. cv2.error: OpenCV(4.5.2) : -1 : error: (-5:Bad argument) in function ‘rectangle‘
  6. 【Pytorch神经网络理论篇】 21 信息熵与互信息:联合熵+条件熵+交叉熵+相对熵/KL散度/信息散度+JS散度
  7. thief book怎么用_战略管理工具箱--30个好用的战略管理好工具
  8. skywalking 安装_SkyWalking全链路追踪利器
  9. Chapter7-2_BERT and its family - Introduction and Fine-tune
  10. LeetCode 1221. 分割平衡字符串