How to Solve Error: Maven ‘parent.relativePath‘ of POM…

Exception information: ‘parent.relativePath’ of POM package name: xxx (the previous level of E:\app\IdeaProjects\xxx\xxx\pom.xml ) points at package name: the previous level of 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.

What is written in the parent of xxx is not the upper level of xxx, but inherits springboot:

<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>2.2.5.RELEASE</version>
</parent>

Add:

<relativePath />

Modify to:

<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>2.2.5.RELEASE</version>
	<relativePath />
</parent>

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *