Questions tagged [nexus3]

Nexus is a Repository Manager for Maven, NuGet, Docker registries and other binary artifact repositories. Repository managers serve two purposes: they act as highly configurable proxies between your organization and the public repositories and they also provide an organization with a deployment destination for your internally generated artifacts.

Since version 3.x, Nexus Repository Manager and Nexus Repository Manager OSS support Docker registries as the Docker repository format for hosted and proxy repositories. These repositories can be exposed to the client-side tools directly or as a repository group. This reduces time and bandwidth usage for accessing Docker images in a registry as well as provides a platform to share images in a hosted repository.

Nexus is an open source repository manager for Maven and other repository formats like P2, NuGet, static sites, RPM/YUM, NPM, NuGet, RubyGems and more. Repository managers serve two purposes: they act as highly configurable proxies between your organization and the public repositories and they provide an organization with a deployment destination for your internally generated artifacts.

The true power of Nexus comes into play with its caching mechanism i.e its ability to cache any component from any source. On first request, nexus scans its storage to see if the requested component is present in the storage location or not. In case the particular artifact is not present, it will fetch the artifact from a list of configured remote repositories and place it in its storage location before serving the requester. Next time the same component is requested, it will be served directly from the storage, thus saving the overhead of fetching it from the remote repository.

In addition Nexus provides a user interface around the administrative and user related tasks such a searching components and provides further features like support for release process, control over available artifacts, audit and security controls. Nexus Professional also displays up-to-date information about known security vulnerabilities and license issues.

Nexus improves build times as described in this video presentation which provides an overview of how a local Nexus server, that you set up and manage, caches artifacts that are downloaded from the Central Repository (aka Maven Central) and other repositories. There is a commercial version, Nexus Professional, with more features available. You can find out more about it all on the dedicated user community website with lots of helpful blog posts, videos and more.

540 questions
0
votes
2 answers

Is it possible to run sonatype/nexus3 docker container on MacOS?

I'm trying to start Maven repository as Docker container with this command: docker run -d -p 8081:8081 --name nexus sonatype/nexus3 When I do it on my windows 10 host everything is fine. When I try the same on my macOS host I get a lot of errors in…
Victoria Agafonova
  • 2,048
  • 10
  • 33
  • 50
0
votes
2 answers

Docker registry not getting used when trying to pull without the registry mirrors in the command line. Error: manifest unknown: manifest unknown

I am trying to pull docker image from Nexus repo without using the registry mirror in the command line and it is throwing an error. If I use the registry mirror in the pull it is succeeding but the image name is not I would like. My docker version…
Gopi
  • 3
  • 1
  • 3
0
votes
1 answer

pip install fails from private repository

I have a private pypi repository hosted on Nexus; I am able to upload the package using twine but when I run pip3 install it fails Upload command: twine upload --repository-url https://nexus.mycompany.com/repository/repos-py-development/ --username…
Sundeep Gupta
  • 1,887
  • 3
  • 24
  • 35
0
votes
1 answer

Configure local proxy for the npm audit with Apache

Based on this one https://github.com/chovyy/npm-audit-proxy In this case Nexus OSS v3 manager running behind Apache reverse proxy. There is need to proxy npm audit as well from https://registry.npmjs.org/-/npm/v1/security/audits/. So how to…
vasja
  • 11
  • 1
0
votes
1 answer

How do I delete all packages with a given version in Sonatype Nexus 3

I don't want to have to select each package one by one and delete the version, this is incredibly tedious (there could be a 100 packages, but even 20 is painful using the UI). What is the easiest way to achieve this? I wish I could just do this from…
Novaterata
  • 4,356
  • 3
  • 29
  • 51
0
votes
1 answer

Installing Nexus in GCP based Ubuntu instance

I am trying to install Nexus on a Ubuntu VM instance in GCP. I am fairly new to both GCP and Ubuntu and was following this tutorial to achieve the same: Installing Java: sudo apt-get update sudo apt install openjdk-8-jdk…
Soumav
  • 385
  • 1
  • 6
  • 25
0
votes
0 answers

NEXUS RM3 - how to filter specific repositories for role/privileges

How can I give permission to users just to view specific repos? so it save a lot of time if it is possible to create a privilege to filter with these criteria: All type of repos start with prefix test What I've tried: Using wildcard to create…
GeoCom
  • 1,290
  • 2
  • 12
  • 33
0
votes
1 answer

Maven Nexus can't find a dependency

I have Nexus OSS 3.29 installed on the local network and I am able to start it (http://somehost:8081/ ) and browse it. I uploaded "commons-lang-3.1.jar" to "maven-releases" and I can see it there. I have a Maven project in Eclipse where I defined a…
vs777
  • 564
  • 2
  • 11
  • 24
0
votes
1 answer

I can't find jetty-https.xml in Nexus 3

I installed a instance of Nexus Repository Manager 3 in rancher and i'm trying to use https port for a docker hosted repository. This means that i need to create a self-signed certificate to make it work. After a lot of research i came down to a…
0
votes
1 answer

How can I get components in repository via nexus3 api?

I have a raw repository in nexus3, named "marvel". In the repository I have about 5000 components with the name "spiderman" in them (e.g. "spiderman-22", "directory/spiderman-tar", etc). I want to get a list of the components in the repository. I…
asmd ashdkj
  • 113
  • 1
  • 3
  • 8
0
votes
1 answer

How can i add an existing docker repository to nexus

I have an external docker registry and i want to use nexus to analyze my repo for vulnerabilities but i don't know how to do it. For example, my repo is located at my.repo.location and i have a login user/password to access it. Is it even possible.
0
votes
0 answers

How to read a Nexus Maven repository with disabled anonymous access?

In Nexus 3 I created a group maven repository. This repository aggregates a couple of proxies(maven central, archive...) as well as some internal repos. It works fine with the anonymous incoming requests activated. Now I have to disable the…
mooor
  • 327
  • 4
  • 13
0
votes
1 answer

How to use system.d service with SDKMan

I am trying to install Sonatype Nexus 3 as a service via system.d and it fails due to INSTALL4J_JAVA_HOME not being set (or at least, so claims systemctl). I use SDKMan! (http://sdkman.io) to manage my Java installation. I am following the Sonatype…
Byron Lagrone
  • 911
  • 1
  • 7
  • 15
0
votes
1 answer

Docker login get failed with nexus repository

We use the nexus repository manager (oss 3.22.1.-02 ) and for the first time, we are trying to setup a Docker repository with nexus. When we trying to execute docker login we are getting this error message. Error: error logging in to v2 end point…
Michael
  • 69
  • 6
0
votes
0 answers

Nexus3: How to persist docker data in ec2?

I am running this on an EC2 machine that has EBS volume attached to it. docker service create --replicas 1 --name registry --publish 5000:5000 --publish 8081:8081 sonatype/nexus3:3.6.2 Now how do I persist the nexus data into EBS volume? So even if…
Vikas Rathore
  • 8,242
  • 8
  • 35
  • 54