I only wrote the following in my own pom.xml file, I kept reporting red, but I couldn’t find the reason.
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
Then I added the official dependency and can download normally
Note: The dependency is added to the
dependencies
label! ! !
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-maven-plugin -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.4.0</version>
</dependency>
Hope it helps you