Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I make a repository private without disabling anonymous access?

0
Posted

Can I make a repository private without disabling anonymous access?

0

A. Yes. (this will require Nexus 1.1) You will need to change the roles around a bit. Follow these steps. • Create a new Privilege that gives access to you public group (or individual repositories)NOTE: Assigning access to a group is equivalent to assigning these privileges to all of the repositories in the group. • Login to nexus as an administrator. • Click on Privileges in the left menu. • Click Add. • Use the following values: • Name: M2 Public Repositories (Group) • Description: Access to Public Repositories (Group) • Repository: Public Repositories (Group) • Repository Target: All (Maven2) • Save. • Repeat the previous step for all you public groups and/or respositories. • Create a new Role and assign this new privilege to it. • Click on Roles in the left menu. • Click Add. • User the following values: • Role Id: repo-public-read • Name: Repo: All Public Repositories (read) • Description: Read only access to all public repositories. • Session Timeout: 60 • Selected Roles / Privil

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123