gpt4 book ai didi

maven - 为什么 Maven 会在本地 Nexus 之前尝试从 repo1,maven.org 下载?

转载 作者:行者123 更新时间:2023-12-01 22:18:54 25 4
gpt4 key购买 nike

我已经安装了 nexus,并配置了我的 settings.xml 以使用本地 nexus 作为存储库,但是,它总是尝试从 repo1.maven.org 获取 Artifact ,然后在从 nexus 获取之前超时。

最佳答案

您需要在 settings.xml 中声明 Nexus 是外部存储库的镜像,如 Nexus book 中所述。 (您应该阅读)。

<mirrors>
<mirror>
<!--This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://nexushost:8081/nexus/content/groups/public</url>
</mirror>
</mirrors>

关于maven - 为什么 Maven 会在本地 Nexus 之前尝试从 repo1,maven.org 下载?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4695065/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com