当前位置:   article > 正文

‘build.plugins.plugin.version‘ for org.springframework.boot:spring-boot-maven-plugin is missing._build.plugins.plugin.version' for org.springframew

build.plugins.plugin.version' for org.springframework.boot:spring-boot-mave

Some problems were encountered while building the effective model for org.example:cloud2021:pom:1.0-SNAPSHOT
'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 88, column 15
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

用IDEA创建springboot项目的时候遇到的一些坑,记录一下

在pom.xml文件中“spring-boot-maven-plugin” 报红了,显示not found 找不到。
如下图所示:
image-20210703120938523

先来看一个翻译

image-20210703121058982

定位到87行,找到问题配置

<plugin>
 <groupId>org.springframework.boot</groupId>
 <artifactId>spring-boot-maven-plugin</artifactId>//这行红色
</plugin>
  • 1
  • 2
  • 3
  • 4

也在网上看了一些别人的解决方式,最后我通过给spring-boot-maven-plugin指定版本后成功解决。修改后如下:

<plugin>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-maven-plugin</artifactId>
	<version>2.2.6.RELEASE</version>
</plugin>
  • 1
  • 2
  • 3
  • 4
  • 5

解决!!!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/421890
推荐阅读
相关标签
  

闽ICP备14008679号