What privileges does a user need to upload/deploy to every repository hosted on local Sonatype Nexus 3.0 server?

Nexus 2

The User must have Artifact Upload privilege, which can be searched in privileges tab.

  • Create a custom Role for your user, add Artifact Upload privilege to the Role.
  • Bind the Role to your user.

Below is an example of nexus 2.x:

And this is for nexus 3.x:


Nexus 3

With Nexus 3.15.2-01, I could successfully deploy a maven site with a user that had a role with the following Privileges:

  • nx-repository-view-<RepoType>-<RepoName>-add and
  • nx-repository-view-<RepoType>-<RepoName>-edit

e.g. nx-repository-view-raw-Cloudogu-Docs-add.

See cloudogu/continuous-delivery-slides-example for an example.

A good exmplanation of nx-repository-view vs nx-repository-admin can be found in this answer.

enter image description here

Tags:

Maven

Nexus