gpt4 book ai didi

java - 从安全的远程存储库下载依赖项

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

我正在尝试从需要身份验证的远程存储库下载依赖项。有没有办法在我的 pom 配置中提供凭据?谢谢

<repositories>
<repository>
<id>alfresco-private</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
</repository>
</repositories>

最佳答案

不,没有,因为 POM 是您可以与之共享的“公共(public) Artifact ”您的开发团队,因此它不应包含密码。

"The repositories for download and deployment are defined by the repositories and distributionManagement elements of the POM. However, certain settings such as username and password should not be distributed along with the pom.xml. This type of information should exist on the build server in the settings.xml."

阅读此处:http://maven.apache.org/settings.html

关于java - 从安全的远程存储库下载依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14602414/

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