spring-boot - 无法将工件 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>
解决方案
推荐阅读
- c# - 获取 razor 元素的 ID 以在 css 中使用 id 样式元素
- typescript - NextJS中服务器端渲染时如何访问存储?
- conda - jupyterhub 设置本地生成器
- flutter - 关闭(并重新打开)flutter modal_bottom_sheet(iOS 样式)后的白屏
- php - contact.php 不发送电子邮件字段
- python - 如何在 python 树视图中保持嵌套标题?
- python - 用python删除csv文件中的空间
- python - ImportError:Keras 需要 TensorFlow 2.2 或更高版本。在 Windows 上通过 `pip install tensorflow` 安装 TensorFlow
- python - 当您在远程服务器中使用输入法时,Pycharm 将自动打印
- ios - 将 react-native 更新到 0.66.2 后无法运行 pod install