【maven】pom.xml中"spring-boot-maven-plugin"报红问题

问题原因

  1. 插件下载速度太慢了,即是从国外的中央仓库里下载的。
  2. 没有刷新maven
  3. spring-boot-maven-plugin没加版本号(有些电脑不加版本号,也是不会爆红的)

问题解决

maven更换镜像

  <!-- 阿里云仓库 -->

 <mirror>
	<id>nexus-aliyun</id>
	<mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf>
	<name>Nexus aliyun</name>
	<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror> 

plugin添加版本号

<build>
  <plugins>
      <plugin>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-maven-plugin</artifactId>
          <version>2.2.6.RELEASE</version>
      </plugin>
  </plugins>
</build>

备注:我自己的idea中就不需要配置版本号也没有问题

确保点击Test出现Build Success

点击刷新

重启IDEA

posted @ 2020-09-17 08:20  DJ同学  阅读(2292)  评论(2编辑  收藏  举报