在使用命令窗口创建Maven项目的时候,遇到了错误,错误信息如下:

     

     具体错误代码为:[ERROR] Failed toexecute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create(default-cli) on project standalone-pom: Unable to parse configuration of mojoorg.apache.maven.plugins:maven-archetype-plugin:2.4:create for parameter #:Cannot create instance of interfaceorg.apache.maven.artifact.repository.ArtifactRepository -> [Help 1]


     首先遇到这个错误,让人联想到的就是Maven是不是出现错误了呢?JDK是不是因为版本的问题?是不是也出现错误了?(也就是Java Home or Maven Home的错误)

     结果试了之后没有任何错误,那到底是什么原因呢?通过查阅到了有效信息;archetype:create命令已经过期,需要使用archetype:generate 来进行代替.在我的电脑上,安装的Maven版本是3.2.3,但通过和错误对比,它提示的却是2.4等等的信息,可以猜测有可能是因为版本的问题,经过文档查阅,我们可以采用generate代替create,来实现父窗体的创建。


     最后解决的效果则是上篇博客(dos命令实现maven分模块创建),当然首先你应该先去尝试使用create去创建,第二种选择才是generate,在操作的过程中,又或许会出现其他的问题,欢迎交流。

【Maven进阶三】 Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4……相关推荐

  1. 使用idea进行Maven打包异常:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war

    使用idea进行Maven打包异常:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war 参考文章: (1) ...

  2. maven bug之Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (defau

    maven bug之Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (defau ...

  3. springboot maven 打包失败 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2

    maven 打包失败 一.问题描述: idea打包springboot项目,控制台提示: Failed to execute goal org.apache.maven.plugins:maven-s ...

  4. 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错误. 原因分析: 打 ...

  5. 解决Failed to execute goal org.apache.maven.plugins

    1.Maven构建失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: 2.3 . 2 :compile  ...

  6. 针对Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1的解决方案

    2019独角兽企业重金招聘Python工程师标准>>> 背景:本项目使用JDK1.8 编译maven工程的时候出现如下错误: Failed to execute goal org.a ...

  7. Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile)

    完整的错误信息: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile ( ...

  8. 针对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 ...

  9. 【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 ...

  10. 【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 ...

最新文章

  1. Redis常用五大数据类型
  2. 算法 - 求一个正整数的二进制表示中1的个数(C++)
  3. 5个强大的Java分布式缓存框架推荐
  4. python的继承用法_Python 中的继承之Super用法
  5. CTF-密码学-攻防世界-幂数加密(云影加密)解密脚本
  6. ES6相关特性的整理(变量数据结构)
  7. python交互模式设置及VIM的tab补齐
  8. ldap2.8.2_Spring LDAP 2.0.0发布
  9. vsftp服务器搭建
  10. 自考那些事儿(六):计算机网络原理(总述篇)
  11. MySQL8的新特性ROLE
  12. 诺基亚c7微信 服务器忙,诺基亚C7怎么刷机
  13. mPaas集成项目、新建mPaaS项目
  14. 法拉科机器人编程软件_发那科 FANUC 机器人仿真软件 中文 roboguide9.1 视频教程...
  15. AVC/HEVC/VVC/AV1 帧间预测:运动估计、运动补偿
  16. LTE中 IMEI, GUTI, IMSI,S-TMSI等符号的含义
  17. bind mysql web_bindview+dlz(mysql)
  18. python公众号教学_Python微信公众号后台开发教程
  19. 2021年资料员-岗位技能(资料员)模拟考试题库及理论考试
  20. Python操作MySQL(十一)

热门文章

  1. 【计算机视觉(CV)】基于卷积神经网络实现美食分类
  2. Nativefier 把网页打包成桌面应用
  3. GBase 8a 运维监控工具---“统一数据平台监控与运维系统”
  4. 三门峡中专计算机专业,中职学校训类校本课程开发研究——以三门峡中专计算机专业为例.pdf...
  5. Apache web服务器(LAMP架构)(week3_day4)--技术流ken
  6. 共情的力量-读书笔记02
  7. msvcp140_atomic_wait.dll文件丢失如何解决?
  8. python如何做动画_如何在Python中动画动态系统的运动?
  9. v-if 和 v-show的区别
  10. 补码运算加减乘除原理