java - 如何更改 IntelliJ IDEA Maven 远程存储库 URL?
问题描述
我的 Maven 存储库 URL 是https://repo.maven.apache.org/maven2
但此 URL 无法访问。Central Maven Repository 的正确 URL 应该是https://repo1.maven.apache.org/maven2
使用不正确的 URL,我无法从远程存储库下载任何依赖项。
如何将远程存储库更改为正确的?
解决方案
https://repo.maven.apache.org/maven2是默认的 maven 存储库。如果您想使用其他存储库,请将它们添加到您的 pom 文件中。
推荐阅读
- arrays - 对两个索引同步(配对)数组进行排序时,如何维护索引?
- c# - 如何将“Var”数据类型中的项目显示到 ListView 中?
- javascript - 在数组中找到总和等于给定值的最小元素
- java - 正则表达式从响应中获取特定字符串
- amp-html - 点击锚标签无法在 amp 中获取 href 值
- go - 增量构建不适用于 go build,仅适用于 go install
- angular - 无法使用 Angular 应用程序与 Web 上的节点进行交互
- wordpress-theming - 无法获取具有特定 term_id 的 Post 数据
- dart - 如何在 TabBarView 中实现 SingleChildScrollView(带有水平列表视图和垂直网格视图)
- reactjs - 我正在使用 reactC3js 模块加载图表,但无法动态加载 y 轴