gpt4 book ai didi

maven-2 - 如何配置 grails 来解析受密码保护的存储库中的依赖项?

转载 作者:行者123 更新时间:2023-12-02 14:46:39 24 4
gpt4 key购买 nike

我有一个受密码保护的内部 Maven 存储库,我想用它来解决 grails 中的依赖关系。

有人知道如何配置 grails 在访问存储库时使用身份验证吗?

我正在运行 grails 1.2.1。

最佳答案

您可以查看文档:3.7.2) 依赖项存储库 -> 身份验证

来自Docs :

If your repository requires some form of authentication you can specify as such using a credentials block:

credentials {
realm = ".."
host = "localhost"
username = "myuser"
password = "mypass"
}

关于maven-2 - 如何配置 grails 来解析受密码保护的存储库中的依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2291940/

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