前提:maven配置文件(pom.xml)中的依赖和插件不存在问题的情况下 方法:点击File中的Settings,找到Maven下面的Runner,勾选Delegate IDE build/run actions to Maven