IDEA运行Main报错Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli) on project education: Command execution failed.

1、一般是由于出现中文乱码的原因,最直接有效的方法是配置运行类VM options:

-Dfile.encoding=UTF-8

 

 

 

 

 

 

 

 

 

 

 

 

2、还不行的话试试别的配置

 

 

 

 

 

 

 

 

 

-Dfile.encoding=UTF-8

 

posted @ 2021-09-08 11:02  shuzu渊  阅读(3461)  评论(0编辑  收藏  举报