方法一: 通过Git Bash进入项目命令管理界面 方法二: 通过idea工具,点击Terminal 最终,执行以下命令: mvn clean -compile 转载于:https://www.cnblogs.com/gaoqiao/p/11138919.html