解决 Maven ‘parent.relativePath‘ of POM

异常信息:‘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:

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

加上

<relativePath />

修改为:

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

 

posted on 2022-05-26 07:31  zyp_java_net  阅读(553)  评论(0编辑  收藏  举报

导航