且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

项目生成错误:不可解析的父POM.无法传输org.springframework.boot:spring-boot-starter-parent

更新时间:2022-02-20 00:25:07

您所指的是local repository中不存在的Parent pom.您应该删除<relativePath>标记的值,以便maven可以从maven central repository获取pom文件.

You are pointing to a Parent pom that does not exist in your local repository. You should remove value for <relativePath> tag so that maven could fetch the pom file from maven central repository.

如下所示更改您的父标签.

Change your parent tag as shown below.

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