简体   繁体   English

Artifactory Maven远程仓库需要授权

[英]Artifactory maven remote repo requires authorization

We are using Artifactory 5.4.6. 我们正在使用Artifactory 5.4.6。

Global setting "Allow Anonymous Access" is turned ob 全局设置“允许匿名访问”已启用

I have created a couple of remote maven repos. 我创建了几个远程Maven仓库。 But when i am trying to download artifact it requires authorization and only after that download starts. 但是,当我尝试下载工件时,它仅在开始下载后才需要授权。

Also i've noticed that we have same problem with all maven repos. 我也注意到我们所有的Maven仓库都有相同的问题。 And only with maven. 而且只有行家。

What am i doing wrong? 我究竟做错了什么?

As per your question there is some authorization issue, and repository autorization(credential) need to set in maven setting.xml, you need to provide 根据您的问题,存在一些授权问题,并且需要在maven setting.xml中设置存储库授权(凭证),您需要提供

<servers>
    <server>
        <id>localplatform</id>
        <username>admin</username>
        <password>admin123</password>
    </server>
</servers>

In setting.xml, it might be a cause. 在setting.xml中,这可能是原因。 For you comment question - 对您的评论问题-

Ques- there is no fully anonymous access to repo in maven repos? 问题-在Maven仓库中没有完全匿名的仓库访问权限吗? Only using settings.xml gives us "anonymous" access? 只有使用settings.xml才能给我们“匿名”访问权限?

Ans- anonymous access can be given to repository, but i think who created your repository not given read permission(download) to anonymous user Ans-匿名访问可以授予存储库,但我认为谁创建了您的存储库,未授予匿名用户读取(下载)权限

I hope that help you. 希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM