Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (defau-cli) on project
@[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相关推荐
- 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 ...
- 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 ...
- 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- ...
- 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 ...
- 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- ...
- 记录一次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 ...
- Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec
在划线处取消打勾,恢复正常. 要说也是搞笑,第一天出了org.springframework.boot.web.embedded.tomcat不存在的错误,把这个打勾给解决了,结果第二天项目又运行不起 ...
- springboot使用德鲁伊DruidDataSource数据源启动报Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0
这个问题纯属细节问题,但是错误提示太模糊所有找不好找.在命令行中查看异常信息会发现Unsatisfied dependency expressed through field 'dataSource' ...
- 【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 ...
最新文章
- 在 CentOS 8 中删除旧的 Linux 内核
- K近邻(KNN)算法是基于实例的算法,如果训练样本数量庞大,预测的时候挨个计算距离效率会很低下,如何破解?
- # C# 学习笔记(4) 类
- Codeforces Round #547 (Div. 3) D
- 模型计算量(FLOPs)和参数量(Params)的理解
- 无重复字符串的最长子串
- NSTimer--转
- Java Web学习总结(36)——JavaEE知识体系及项目开发过程的总结
- Noip2010提高组总结
- 关于python保存再打开后的中文乱码的问题
- Python引力波火了 你该了解的开源框架
- 有html5了可以卸载flash,adobe flash player可以卸载吗?
- 三个常用的apk分析网站对比:VirusTotal、哈勃、摸瓜
- 城市和经纬度一致性验证
- php大量邮件,PHPMailer批量发送邮件的实例代码
- 红尘一醉,愿得一人心;烟火夫妻,白首不相离
- 使用nvm管理node和npm
- 关于android接入微信分享(以及app签名 the apk for your currently selected variant(app-release)
- android 模拟器 启动,android开发之启动模拟器并安装游戏apk
- correl函数相关系数大小意义_用Correl函数返回相关系数,以确定属性关系