简体   繁体   中英

Making Sonatype Nexus Repository publically accessible to be able to download artifacts with URL like maven central

I am trying to make nexus repository public so that another application can use it or download it without any authentication ( with just provided URL ) just like maven central. Is there any way to do that?

eg I am trying to use this url to download akashh-1-javadoc.jar but it shows me login box first to download this artifact. http://localhost:8081/repository/temp/com/akashh/1/akashh-1-javadoc.jar

在此处输入图像描述

Is there any way to make nexus repository public without any username or password?

If you enable Read access for the anonymous user, this should be possible. To do so, go to Security -> Users, select "anonymous", and check that the user has the role "Repo: All repositories (read)" in the Role management box.

See the following picture how it should look like:

在此处输入图像描述

If you only want to have anonymous read permissions for a specific repository, you need to create a role for that specific permission and assign that role to the anonymous user.

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