首页 文章

项目构建错误:不可解析的父级POM fo

提问于
浏览
0

这是我的第一个使用 spring 靴的项目 . 所以我尝试用父代更新pom.xml,如下所示:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.in28minutes.springboot</groupId>
    <artifactId>first-springboot-project</artifactId>
    <version>0.0.1-SNAPSHOT</version>

    <name>springboot-in-10-steps</name>
    <description>Demo project for Spring Boot</description>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.0.BUILD-SNAPSHOT</version> <!-- lookup parent from repository -->
    </parent>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
    </dependencies>
</project>

但是,我遇到了错误:

项目构建错误:com.in28minutes.springboot的不可解析的父POM:first-springboot-project:0.0.1-SNAPSHOT:找不到工件org.springframework.boot:spring-boot-starter-parent:pom:2.0 .0.BUILD-SNAPSHOT和'parent.relativePath'指向错误的本地POM

请帮忙!

enter image description here

2 回答

相关问题