使用cmd,到项目根目录下,运行命令: mvn clean install -Dmaven.test.skip=true 再使用cmd,到项目根目录下,运行命令: mvn -U idea:idea 就可以了