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
3
votes
1 answer

how to use\connect to sonatype nexus docker registry v2 api in a web application?

I have a private sonatype nexus repository manager OSS 3.25.1-04 container running on a vm (with nginx routing from docker.io to repo manager url) that contains a few repositories, one of them is a docker registry. I want to use the docker registry…
jackInTheBox
  • 62
  • 1
  • 8
3
votes
2 answers

Nexus 3 as Docker Registry behind Traefik v.2 - pushing fails

On the same linux VM with docker v.19.03.11 I'm running: Nexus: version: '3.7' services: nexus: container_name: nexus image: sonatype/nexus3 volumes: - nexus-data:/nexus-data networks: - web ports: - 8081 …
mooor
  • 327
  • 4
  • 13
3
votes
1 answer

Ho to create "nexus local user and role" in "sonatype nexus" using ansible playbook

I am working on an automation where I need to install sonatype nexus using ansible playbook, and create a nexus user and role. So far I have installed sonatype nexus using playbook, and also I am able to login to the application and create a "nexus…
Jagdish0886
  • 343
  • 1
  • 5
  • 20
3
votes
0 answers

Dockerfile pull from nexus repository

My dockerfile points to a private nexus repository FROM nexus-repo/image:latest when i try and build i get aCould not build image: received unexpected HTTP status: 503 Service Unavailable I am logged in beforehand, and running docker pull…
BeerEye
  • 59
  • 2
  • 6
3
votes
1 answer

Nexus sonatype/nexus3:3.17.0 on docker tells its using only one cpu

im running Nexus 3 on a 4 CPU Docker Host only limiting RAM Usage to the Container. After Upgrading to sonatype/nexus3:3.17.0 from 3.16.1 Nexus tells me on the Status Page in the Admin Backend: Available CPUs: The host system is allocating a maximum…
Robert Lachner
  • 657
  • 1
  • 8
  • 22
3
votes
1 answer

Docker pull from Nexus proxy Error response from daemon : unknown: unknown

After configuring a Nexus docker registry and proxy "dockerhub-proxy" like described here…
3
votes
0 answers

Why is Nexus 3 using blobstore?

I can't understand nor find the reason why Sonatype Nexus switched from regular file system to blobstore to store the artifacts between version 2 and 3. Does anyone know why they made this choice and what it improves?
3
votes
1 answer

Nexus Repository 3 backup

Recently I installed Nexus Repository 3 in OpenStack Cloud and I am using it for a while now. I would like to perform incremental backup of Nexus and thus securing our data. How can one perform incremental backups of nexus data?
Rashmi
  • 31
  • 1
  • 3
3
votes
1 answer

How can I rename a repository in Nexus Repository 3?

I am migrating from Nexus2 to Nexus3 and trying to do some cleanup along the way. I would really like to rename some of the repositories that I am migrating as the repositoryID is less clear than the repository Name. And in Nexus 3 repositoryId and…
William
  • 20,150
  • 8
  • 49
  • 91
3
votes
2 answers

Sonatype Nexus 3 - Logging URLs proxy requests

I'm trying to debug an issue of a proxy repository giving me a 404 for an artifact that I know exists in the repository being proxied (this is an NPM package in my case). I would like to enable logging so that I can see the URL that Nexus is…
Daniel Holmes
  • 342
  • 1
  • 2
  • 13
3
votes
3 answers

maven deploy works with snapshots but 404 for releases

I am trying to deploy to our internal nexus repository. I have configured a maven project where I can do a mvn install and mvn clean deploy. The odd thing is when I remove SNAPSHOT from the version, I get a 404. Here is my pom.xml that works for…
Chris Bolton
  • 2,162
  • 4
  • 36
  • 75
3
votes
1 answer

Build and Publish docker images to Nexus3

New to nexus.. We are trying to automate build process (Build docker images and publish them to Nexus3 repository).. My requirement is, I have an image built using docker build -t : . now I want to publish this docker image to…
rameshthoomu
  • 1,234
  • 2
  • 17
  • 33
3
votes
1 answer

Nexus 3 npm proxy failing most of the time

We're using Nexus 3.0.1-01 to proxy https://registry.npmjs.org/ We've configured a group containing the proxy to npmjs.org and our locally hosted npm repo. In the local npm-config we have pointed npm to our Nexus as registry. All connections to the…
Bebef
  • 141
  • 2
  • 6
3
votes
1 answer

Nexus OSS 3.0.2-02 initializing but not starting

I am installing nexus OSS and have it setup according to the docs. I am getting Initializing..... when visiting the /nexus/ context. I get the below in the nexus.log when the page comes up. ------------------------------------------------- Started…
Shin234
  • 31
  • 1
  • 3
3
votes
4 answers

Use Nexus 3 API to change admin password

I would like to use the Nexus 3 api to change the admin default password as well as the email address using groovy. But I don't understand how to set the password using the groovy api. Can someone provide an example of how to do this?
Dennis Hoer
  • 3,039
  • 2
  • 23
  • 34