首页 > 解决方案 > 无法将工件 org.springframework.boot:spring-boot-starter-parent:pom:2.1.5.RELEASE 从/转移到 nexus

问题描述

在我的 pom.xml 中,通过使用以下代码,出现此错误:

“项目构建错误:eu.hermes.sbprojects 的不可解析父 POM:sb-firstproject:0.0.1-SNAPSHOT:无法传输工件 org.springframework.boot:spring-boot-starter-parent:pom:2.1.5 .RELEASE from/to nexus https://nexus.myCompanyNexus.de/repository/maven-group/):nexus.myCompanyNexus.de和 'parent.relativePath' 指向错误的本地 POM”

我想这是代理问题。但令人困惑的是,我现在不在办公室,而是在家里,在家里使用我的正常 wlan。因为我使用 Spring Tool Suite 作为 IDE,所以我转到 Window->Preferences->Network connections。

并将网络连接的主动提供者从 Native 设置为 Manual。

但是,错误仍然存​​在。我只是将版本从最新的 2.1.5 RELEASE 更改为 2.1.0 RELEASE,它就可以工作了。

但是我完全不明白,为什么?为什么我还在家里,它告诉我无法将工件 org.springframework.boot:spring-boot-starter-parent:pom:2.1.5.RELEASE 从/到我的公司转移?为什么使用较低版本而不是最新版本,它可以工作?

谢谢!

问候,子

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

标签: spring-bootnexus

解决方案


推荐阅读