- 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