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
8
votes
2 answers

Nexus 3 as npm repository can't find some dependencies: npm ERR! 404 Not Found:

I am using Nexus 3 as npm private repository. I have a project that requires some dependencies such as: @nodelib/fs.stat, @mrmlnc/readdir-enhanced@^2.2.1. If I execute the following npm install commands everything works alright: sudo npm install -g…
codependent
  • 23,193
  • 31
  • 166
  • 308
7
votes
2 answers

401 Unauthorized Error while login into nexus docker registry

I am using nexus as a Docker container, with tag sonatype/nexus3:3.14.0. Also, I connect nexus with LDAP for user better user management it is helpful for group and role management. For my case, I create a blog-store and create two docker registry…
7
votes
2 answers

Nexus Repository Manager - removing old binary resources

I wonder if there is a way to delete many items from nexus repository. I have some RAW type repositories with some web application releases(simple tar.bz2 binary files): In some repositories are a lot of them. I want to free up some disk space. I…
Krzysztof Raciniewski
  • 4,735
  • 3
  • 21
  • 42
7
votes
0 answers

How to set page size on sonatype nexus3 api?

I've been searching around on how to deal with pagination of nexus as documented in here https://help.sonatype.com/repomanager3/rest-and-integration-api/pagination However there is no mention on how to set pagination and I can't find if it's a…
fd8s0
  • 1,897
  • 1
  • 15
  • 29
7
votes
3 answers

Permission issues in nexus3 docker container

When I start nexus3 in a docker container I get the following error messages. $ docker run --rm sonatype/nexus3:3.8.0 Warning: Cannot open log file: ../sonatype-work/nexus3/log/jvm.log Warning: Forcing option -XX:LogFile=/tmp/jvm.log Java…
7
votes
3 answers

docker login into nexus connection refused

I have set up my docker repo, below is the docker-compose.yml file: version: '2' networks: prodnetwork: driver: bridge services: nexus: image: sonatype/nexus3 volumes: - "nexus-data:/nexus-data" ports: - "8081:8081" -…
xross
  • 597
  • 4
  • 9
  • 25
7
votes
1 answer

Isn't Nexus open source any more?

I would like to use Nexus 3.x, but I think it's licensing has changed. 2.x was EPL v1, but 3.x has a SONATYPE MASTER EULA AGREEMENT, instead. My question is: Nexus 3.x can be used freely?
Berne
  • 617
  • 1
  • 7
  • 17
7
votes
5 answers

Nexus 3 : how to get latest snapshot?

As we all know Nexus 3 does not have REST API yet, which is very weird for me. I can only download artifacts manually using wget or curl. But as I'm using Maven 3, all the snapshots artifacts are named using timestamps like this…
hawarden_
  • 1,904
  • 5
  • 28
  • 48
7
votes
1 answer

Nexus 2 OSS vs. Nexus 3

I operate some Docker services. Some of them are selfmade with Dockerfiles. I now want to store them into a Sonatype Nexus private repository to publish them to another server in my network. My research half a year ago gave me Nexus 2 OSS as best…
Alex
  • 789
  • 1
  • 12
  • 29
6
votes
1 answer

Installing nexus error: The version of the JVM must be at least 1.8 and at most 1.8

I have installed Nexus on Ubuntu 18.04 LTS. When I want to start Nexus service I get this error: nexus[24049]: No suitable Java Virtual Machine could be found on your system. nexus[24049]: The version of the JVM must be at least 1.8 and at most…
Ali Behzadian Nejad
  • 8,804
  • 8
  • 56
  • 106
6
votes
1 answer

Nexus3 + Nginx Reverse proxy

I am trying to get Nexus3 to run behind Nginx. Nginx is used as a reverse proxy and for SSL termination. When accessing the /nexus path through Nginx, I get multiple errors such as "Operation failed as server could not be reached" and "unable to…
Taahir Hassem
  • 147
  • 2
  • 9
6
votes
5 answers

How to backup all Nexus 3 artifacts?

I was wondering how to download all (not one or two specified ones) artifacts from a Nexus 3 repo to local disk. In Nexus 2 it was easy since everything was stored on disk and I would just rsync all the artifacts to my local disk. But in Nexus 3…
jcrosel
  • 349
  • 2
  • 5
  • 13
6
votes
3 answers

How to restore a deleted component in Sonatype Nexus 3

In Nexus Repository Manager 2 you could move deleted assets/components on the server from the .trash-folder to repository to restore anything you might have deleted. This is because Nexus stored Components as individual files on disk. Sonatype Nexus…
krowl1000
  • 84
  • 1
  • 6
6
votes
1 answer

What is the location of files (WAR and JAR) pushed to Nexus 3 from Maven

I am using Nexus Repository 3 as storage for my build files. More precisely WAR and JAR artefacts which are deployed to repository via Maven deploy plugin. I have been searching in multiple folders under /sonatype-work/nexus3/ but I couldn't find…
gibyalex
  • 629
  • 3
  • 9
  • 19
6
votes
2 answers

Docker pull/push using private registry without prefixing

We are using Nexus3 docker groups (combining dockerhub proxy and private registry) aka: docker pull dockerproxy:5002/busybox trying to pull from dockerhub if it does not exist in private registry, push storing in private registry part. Works…
MortenB
  • 2,749
  • 1
  • 31
  • 35
1
2
3
35 36