【问题标题】:Project build error: Non-resolvable parent POM: Failure to transfer org.springframework.boot:spring-boot-starter- parent:项目构建错误:Non-resolvable parent POM: Failure to transfer org.springframework.boot:spring-boot-starter-parent:
【发布时间】:2021-08-22 20:01:34
【问题描述】:

谁来帮帮我 我在尝试保存 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 的更新间隔已过或强制更新。原始错误:无法传输工件 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 马板鹊 0.0.1-快照 马板鹊 Spring Boot 的演示项目 11 org.springframework.boot spring-boot-starter-数据-jpa org.springframework.boot spring-boot-starter-安全 org.springframework.boot spring-boot-starter-百里香叶 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>

【问题讨论】:

  • 使用 https 而不是 http....

标签: java spring spring-boot maven java-ee-6


【解决方案1】:

被缓存在本地存储库中,看起来你的 maven 无法加载 尝试重新安装maven,并使用https://start.spring.io尝试生成这个项目

【讨论】:

    猜你喜欢
    • 2022-07-30
    • 2021-03-05
    • 2023-02-07
    • 2021-03-29
    • 2014-12-31
    • 1970-01-01
    • 2021-10-22
    • 2021-09-20
    • 2017-07-06
    相关资源
    最近更新 更多