解决pom.xml文件spring-boot-maven-plugin not found问题
1 2 3 4 | <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> |
显示spring-boot-maven-plugin not found
解决方法:1.打开本地仓库respository/org/springreamework/boot/spring-boot-maven-plugin,查看是否存在plug-in文件,如图

如果存在,则在pom.xml文件中补充对应版本号即可解决
1 2 3 4 5 | <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.3.0.RELEASE</version> </plugin> |
如果不存在,或者还不能解决飘红问题,可以删除spring-boot-maven-plugin文件夹下所有内容,并补充版本号
1 | <version>2.3.0.RELEASE</version> |
maven重新导入后问题解决