Nexus Repository Manager connection setup
Connecting Nexus Repository Manager enables Snyk to resolve all direct and transitive dependencies of packages hosted on the Nexus registry and calculate a more complete, accurate dependency graph and related vulnerabilities.
You can configure these types of Nexus Repository Manager:
Publicly accessible instances protected by basic authentication
Instances on a private network by using Snyk Broker (with or without basic authentication).
These instructions apply to configuring publicly accessible instances. For instructions on configuring a brokered instance, see the setup instructions for Snyk Broker with Nexus Repository Manager.
Set up publicly accessible instances
Navigate to Settings > Integrations > Package Repositories > Nexus
Verify that you see the screen to configure Nexus.

On the page to configure Nexus, enter the information for the version you are using.
Enter the URL of your Nexus instance; this must end with
/repository
Enter the Username.
Enter the Password.
Click Save
Nexus behind a reverse proxy
If your Nexus server is running behind a reverse proxy, for example, Nginx, the URL might not end with the default /repository
for Nexus 3 or /nexus/content
for Nexus 2, depending on what routes have been configured in the reverse proxy. If this is the case, ensure you use the URL configured in the reverse proxy.
Example: for Nexus 3, if http://nexus.company.io/repository
is mapped to http://nexus.company.io/my-company/my-repository
, use http://nexus.company.io/my-company/my-repository
.
Example: for Nexus 2, if http://nexus.company.io/nexus/content
is mapped to http://nexus.company.io/my-nexus-content
, use http://nexus.company.io/my-nexus-content
.
Nexus user permissions
The Nexus user needs the following privileges, either as part of the Role or added individually:
nx-metrics-all
(for the system status check endpoint)nx-repository-view-[*-* | <ecosystem-repo-name>]-read
nx-repository-view-[*-* | <ecosystem-repo-name>]-browse
Last updated
Was this helpful?