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

How to configure docker proxy repository in Nexus3 for GitLab container registry?

I am trying to configure a docker proxy repository in Nexus 3 for docker images hosted in GitLab container registry. I can successfully execute a pull using the following command: docker pull…
Danny Lo
  • 1,553
  • 4
  • 26
  • 48
2
votes
0 answers

how to change admin password for Sonatype Nexus Using ansible playbook

I have installed the nexus using playbook from the below url: http://download.sonatype.com/nexus/3/nexus-3.18.1-01-unix.tar.gz For first time login the default password admin/admin123 doesn't work, however it prompts me to copy the password from…
Jagdish0886
  • 343
  • 1
  • 5
  • 20
2
votes
1 answer

Error parsing templates/deployment.yaml: json: line 1: invalid character '{' looking for beginning of object key string

I'm getting the following error, when I try to deploy nexus using Kubernetes. Command: kubectl appy -f templates/deployment.yaml error parsing templates/deployment.yaml: json: line 1: invalid character '{' looking for beginning of object key…
user3510365
2
votes
1 answer

How to install nexus on ubuntu-18.04

I need help in installing nexus-oss on ubuntu18.04. I am not able to find any apt-get commands on internet. I tried to search for nexus packages in "sudo apt-get search nexus", but could not get a proper nexus version package. I have browsed over…
csvraju
  • 105
  • 1
  • 1
  • 6
2
votes
0 answers

Nexus repository cache is not getting uploaded with the npm modules

My organization does not allow servers with direct access to internet. We have Nexus 3 OSS installed in the offline machine with proxy access to https://registry.npmjs.org enabled. I have tested the flow from our nexus machine to…
nishat
  • 947
  • 2
  • 8
  • 15
2
votes
0 answers

Docker pull from privately hosted registry for python:3.6.8-slim based image works after push but returns blob unknown after prune

For a cron job triggered script, I have used python:3.6.8-slim as a base image for my script to run. The script runs every hour and does so successfully until the docker system prune job runs. After that, the script fails to pull the image with the…
Theo
  • 2,262
  • 3
  • 23
  • 49
2
votes
1 answer

nexus 3 create docker with pre define configuration

I want to create nexus 3 docker with pre-define configuration (few repos and dummy artifacts) for testing my library. I can't call the nexus API from the docker file, because it require running nexus. I tried to up the nexus 3 container, config it…
Shurik
  • 562
  • 1
  • 7
  • 19
2
votes
1 answer

MVN release fails with "Repository does not allow updating assets: releases" when it should not

We have a multi module project for which we want to do a release using the following command mvn release:prepare release:perform -B -e -X which fails with 07:54:12 [INFO] Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could…
papanito
  • 2,349
  • 2
  • 32
  • 60
2
votes
1 answer

GCP IAM roles for sonatype-nexus-community/nexus-blobstore-google-cloud

Trying o build sonatype-nexus-community/nexus-blobstore-google-cloud but cannot succeed without Project Owner iam role in GCP. If I understand everything correctly Storage Admin IAM role should be sufficient, at least according to the…
2
votes
1 answer

How to get npm packages with dependency to github projects from Nexus oss proxy

we work in a private network without internet connection. recently we decide to setup nexus oss to use npm , maven and other dependency management systems. but when we set npm registry url to nexus proxy url , with this command : npm config set…
2
votes
0 answers

Sorting by Version Number in Maven Repository Manager UI

My experience: Neither Nexus 2 nor Nexus 3 nor Artifactory are able to sort versions of artifacts correctly in their UI. Versions are always sorted as Strings, which means that you easily miss versions like 2.11 because they come before 2.9. Is…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
2
votes
1 answer

How to use unpkg with private repositories?

Is there a way of doing something similar to unpkg for private npm repositories? I am specifically using sonatype nexus. The closest thing I can think of is to do an npm build and publish the JS files in some web server somewhere and include it…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
2
votes
0 answers

Does docker client support context path for registry?

Sonatype Nexus documentation indicates that you can push to a docker registry without a HTTP connector as per this guide. It states the following: Nexus would be listening at a non-https connector such as the default 8081. Docker repositories are…
kaizenCoder
  • 2,211
  • 6
  • 33
  • 64
2
votes
1 answer

Nexus 3 and Content Selectors

I'm trying to use Sonatype Nexus 3 and content selectors for a Maven 2 repository. I created a Maven 2 repository called "custom-snapshots" and a content selector with the query coordinate.groupId =^ "net" (My original query was more precise, but…
Jeanne Boyarsky
  • 12,156
  • 2
  • 49
  • 59
2
votes
1 answer

Docker for Windows - access container in local network

I have installed Docker for Windows on which I have running Nexus Repository Manager container. Now I want to make my nexus container be accessible from other pc's located in internal network. How to do it?
Wicia
  • 575
  • 3
  • 9
  • 28