简体   繁体   中英

Artifactory maven remote repo requires authorization

We are using Artifactory 5.4.6.

Global setting "Allow Anonymous Access" is turned ob

I have created a couple of remote maven repos. 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. 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

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

In setting.xml, it might be a cause. For you comment question -

Ques- there is no fully anonymous access to repo in maven repos? Only using settings.xml gives us "anonymous" access?

Ans- anonymous access can be given to repository, but i think who created your repository not given read permission(download) to anonymous user

I hope that help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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