无法从 IntelliJ 中的 Maven 项目的 Maven 存储库下载包
我尝试在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论