@[TOC](Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (defau-cli) on project)

问题

在main方法里面执行cmd的命令出现这个报错,很多说是可以重新安装IDEA以前的版本,但是感觉太麻烦.

解决

把main方法改写成test类即可
如下
原来的代码

改为test后即可运行

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (defau-cli) on project相关推荐

  1. IDEA运行test出现 Failed to execute goal org.codehaus.mojo:exec-maven-plugin:16.0.0:exec (default-cli) on

    IDEA运行test出现 Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli) on ...

  2. ruoyi-cloud 服务器端idea启动报错Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (defau

    ruoyi-cloud 服务器端idea启动报错Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (defau ...

  3. Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli) on project

    Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli) on project sp03- ...

  4. Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:exe问题解决

    解决:Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project sp ...

  5. Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0

    1.问题描述 利用maven导包,运行Mybatis案例的main函数时报错. [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven- ...

  6. 记录一次wagon报错Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0:upload-single

    记录一次wagon报错Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0:upload-single (default-cl ...

  7. Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec

    在划线处取消打勾,恢复正常. 要说也是搞笑,第一天出了org.springframework.boot.web.embedded.tomcat不存在的错误,把这个打勾给解决了,结果第二天项目又运行不起 ...

  8. springboot使用德鲁伊DruidDataSource数据源启动报Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0

    这个问题纯属细节问题,但是错误提示太模糊所有找不好找.在命令行中查看异常信息会发现Unsatisfied dependency expressed through field 'dataSource' ...

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

最新文章

  1. 在 CentOS 8 中删除旧的 Linux 内核
  2. K近邻(KNN)算法是基于实例的算法,如果训练样本数量庞大,预测的时候挨个计算距离效率会很低下,如何破解?
  3. # C# 学习笔记(4) 类
  4. Codeforces Round #547 (Div. 3) D
  5. 模型计算量(FLOPs)和参数量(Params)的理解
  6. 无重复字符串的最长子串
  7. NSTimer--转
  8. Java Web学习总结(36)——JavaEE知识体系及项目开发过程的总结
  9. Noip2010提高组总结
  10. 关于python保存再打开后的中文乱码的问题
  11. Python引力波火了 你该了解的开源框架
  12. 有html5了可以卸载flash,adobe flash player可以卸载吗?
  13. 三个常用的apk分析网站对比:VirusTotal、哈勃、摸瓜
  14. 城市和经纬度一致性验证
  15. php大量邮件,PHPMailer批量发送邮件的实例代码
  16. 红尘一醉,愿得一人心;烟火夫妻,白首不相离
  17. 使用nvm管理node和npm
  18. 关于android接入微信分享(以及app签名 the apk for your currently selected variant(app-release)
  19. android 模拟器 启动,android开发之启动模拟器并安装游戏apk
  20. correl函数相关系数大小意义_用Correl函数返回相关系数,以确定属性关系

热门文章

  1. FZU2214 超大背包
  2. python中的正则表达式(re模块)
  3. 华为V8手机USB OTG Type-C接口数据线
  4. java版湛蓝的回忆_湛蓝回忆 | 假情绪love | 橙光作品
  5. java后台实现支付宝支付接口、支付宝订单查询接口 前端为APP
  6. MongoDB多层嵌套查询
  7. JAVA实现本月国际国内节日
  8. Java-Stream流,异常捕获
  9. [Qt] QWidget QWindow 窗口管理器(WM)
  10. 苹果cms V10搭建教程 教你如何使用苹果cms搭建一款电影/影视网站【第一节】