gpt4 book ai didi

maven - Azure Pipeline Maven 任务因未经授权的 401 错误而失败

转载 作者:行者123 更新时间:2023-12-04 09:22:57 26 4
gpt4 key购买 nike

我在 azure CI 管道中有一个 Maven 任务,我想在其中发布我的 Artifact 以输入 azure Artifact 。我添加了一个以部署为目标的 Maven 任务,并启用了身份验证内置 Maven 提要。但是它会抛出未经授权的 401 错误,有人可以帮助我将构建 Artifact 发布到 azure Artifact 提要吗?

最佳答案

I added a maven task with deploy as a goals and enable theauthenticate builtin maven feed. But its throwing unauthorized 401error , Can some one help me publishing my build artifacts to azureartifacts feed?

enter image description here

添加Maven Authenticate task在调用 Maven 任务 发布 Artifact 之前。 Maven 身份验证任务 可以在当前用户的 settings.xml 文件中为 Azure Artifacts 源和外部 Maven 存储库提供凭据。

此外:要将包发布到 Azure Devops 提要,您需要确保 1.您创建服务连接(用于 maven 身份验证任务)的用户帐户和项目构建服务至少有 贡献者 目标提要中的角色。

提要设置:

enter image description here

enter image description here

关于maven - Azure Pipeline Maven 任务因未经授权的 401 错误而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63067325/

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