目录

Maven ‘parent.relativePath‘ of POM报错

异常信息

1
2
parent.relativePath’ of POM 包名:xxx (E:\app\IdeaProjects\xxx的上一级\xxx\pom.xml) points at 包名:xxx的上一级 instead of  org.springframework.boot:spring-boot-starter-parent, please verify your  project structure @ line 5, column 13It 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.

解决

xxx的parent里写的并不是xxx的上一级,而是继承了springboot

1
2
3
4
5
<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>2.2.5.RELEASE</version>
</parent>

加上

1
<relativePath />

修改为

1
2
3
4
5
6
<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>2.2.5.RELEASE</version>
	<relativePath />
</parent>