事实上我已经 在idea的setting中配置好maven的路径.bash_profile文件中也配置好了maven的路径 intellij idea - No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system - Stack Overflow 在这里找到了一个解决方案 终于运行起来了!😭