无法从 IntelliJ 中的 Maven 项目的 Maven 存储库下载包

发布于 2025-01-15 22:39:28 字数 714 浏览 3 评论 0原文

我尝试在 Maven 中下载 pom.xml 文件中的包,但总是下载失败。 收到错误消息: 无法从中央传输工件 org.sonatype.oss:oss-parent:pom:5 (https: //repo.maven.apache.org/maven2): https://repo。 maven.apache.org/maven2/org/sonatype/oss/oss-parent/5/oss-parent-5.pom

我尝试检查问题,转到:File >设置>构建、执行、部署>构建工具 > Maven > 存储库 网址: https://repo.maven.apache.org.maven2 类型:远程 更新:错误 我不确定存储库中的问题是否会导致无法从 maven 下载包的问题。 你能告诉我如何修复它吗? 我正在使用IntelliJ Idea 2021.1.1,创建了maven项目。

I've tried to download package in pom.xml file in the Maven but it is always failed to download.
Got the error message:
Could not transfer artifact org.sonatype.oss:oss-parent:pom:5 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/5/oss-parent-5.pom

I've tried to check the issue, go to the: File > Settings > Build, Execution, Deployment > Build Tools >Maven >Repositories
URL: https://repo.maven.apache.org.maven2
Type: Remote
Updated: Error
I am not sure if the issue in the Repositories causes issue that can't download package from maven.
Could you show me to fix it?
I'm using IntelliJ Idea 2021.1.1, created maven project.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文