首页 > 解决方案 > 如何更改 IntelliJ IDEA Maven 远程存储库 URL?

问题描述

我的 IDEA 设置(Maven 存储库)

我的 Maven 存储库 URL 是https://repo.maven.apache.org/maven2
但此 URL 无法访问。Central Maven Repository 的正确 URL 应该是https://repo1.maven.apache.org/maven2
使用不正确的 URL,我无法从远程存储库下载任何依赖项。

如何将远程存储库更改为正确的?

标签: javamavenintellij-idearepository

解决方案


https://repo.maven.apache.org/maven2是默认的 maven 存储库。如果您想使用其他存储库,请将它们添加到您的 pom 文件中。


推荐阅读