1.先检查仓库配置setting文件,配置成阿里云的仓库
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
- 然后从仓库找到最新的额plugin依赖并添加进入,然后导入,大工告成
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.4.6</version>
<type>maven-plugin</type>
</dependency>