<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent
错误分析:子模块的parent写的不是父模块,而是继承了springboot。错误内容:pom.xml中导入springboot坐标project报红。解决方法:在该标签中加上。
错误内容:pom.xml中导入springboot坐标project报红
提示:
Some problems were encountered while building the effective model for org.springframework.boot:test01:jar:27.0
‘parent.relativePath’ of POM org.springframework.boot:test01:2.7.0 (E:\JavaWeb_base\springbootTest\test01\pom.xml) points at com.ltb:springbootTest instead of org.springframework.boot:spring-boot-starter-parent, please verify your project structure @ line 7, column 13
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.
错误分析:子模块的parent写的不是父模块,而是继承了springboot
<!--springboot工程需要继承的父工程-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.2</version>
</parent>
解决方法:在该标签中加上 <relativePath />
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.2</version>
<relativePath />
</parent>
更多推荐
所有评论(0)