idea报错:Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on
- idea版本:
2020.3 - idea 报错:在查阅了资料以后发现是
IDEA2020的兼容问题
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project sms: Command execution failed.
- 解决方法:
- 测试不要用
main方法测试,使用junit测试 - 更换版本至
IDEA2017 - File ->Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Runner
取消将IDE生成/运行操作委托给Maven

本文来自博客园,作者:兮动人,转载请注明原文链接:https://www.cnblogs.com/xdr630/p/15254601.html

浙公网安备 33010602011771号