解决办法1:找到项目pom.xml,右键选择add as a maven project,导入maven。 解决办法2:在terminal命令行mvn clean清除maven,再安装mvn install -Dmaven.test.skip=true