繁体   English   中英

项目构建错误:Non-resolvable parent POM: Failure to transfer org.springframework.boot:spring-boot-starter-parent:

[英]Project build error: Non-resolvable parent POM: Failure to transfer org.springframework.boot:spring-boot-starter- parent:

有人帮助我,我在尝试保存 pom.xml 文件时遇到以下问题:

项目构建错误:Non-resolvable parent POM: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.5.0 from http://uk.maven.org/maven2缓存在本地存储库中,直到 UK 的更新间隔已过或强制更新,才会重新尝试解决。 Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.5.0 from/to UK ( http://uk.maven.org/maven2 ): null to http:// uk.maven.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.5.0/spring-boot-starter-parent-2.5.0.pom和“parent.relativePath”指向没有本地 POM

这是我的 pom.xml

4.0.0 org.springframework.boot spring-boot-starter-parent 2.5.0 com.example MaBanque 0.0.1-SNAPSHOT MaBanque Demo project for Spring Boot <java.version>11</java.framework> spring-boot-starter-data-jpa org.springframework.boot spring-boot-starter-security org.springframework.boot spring-boot-starter-thymeleaf org.thymeleaf.extras thymeleaf-extras-springsecurity5

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <scope>runtime</scope>
        <optional>true</optional>
    </dependency>
    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-test</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

was cached in the local repository,It looks like your maven can`t load Try reinstall maven, and try generata this project using https://start.spring.io

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM