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

How to upload and download docker images using nexus registry/repository?

I was able to publish a Docker image using the jenkins pipeline, but not pull the docker image from the nexus.I used kaniko to build the image. deployment.yml apiVersion: apps/v1 kind: Deployment metadata: labels: app: test-app name:…
island
  • 43
  • 1
  • 11
0
votes
0 answers

upload all files with same extension using curl

I want to upload all .jar files in a directory to nexus repository manager. I have tried : curl --upload-file $(find -name *.jar) nexus-host -u username:password This does not work.
MedUs
  • 1
  • 2
0
votes
0 answers

How to publish an obfuscated jar file and pom to Nexus repository with gradle

I need to publish a couple of obfuscated jar files with their POM (before obfuscation) to a Nexus repository with Gradle. The problem is if I select components.java then the non-obfuscated jar file is deployed. I am using yGuard for obfuscation, and…
Amir Pashazadeh
  • 7,170
  • 3
  • 39
  • 69
0
votes
0 answers

Autosign rpm packages with nexus3 repository manager

Is it possible to automatically sign rpm packages with a gpg key when uploading to a repository? I did not find any information on this in the documentation, I think I found the signature of the repository using gpg, but this is not exactly what I…
Danil
  • 3
  • 2
0
votes
0 answers

nexus3 oss deployment on docker

I would like to deploy nexus3 oss in docker container (standalone instance) on-prem. According to the documentation here : https://help.sonatype.com/repomanager3/product-information/system-requirements#SystemRequirements-FileSystems, look likes only…
Thinny
  • 1
0
votes
1 answer

Can't login to nexus docker private registry using Docker

I'm trying to create a local docker private registry. I am following the documentation. For this purpose I have created the following docker-compose.yaml file in order to deploy the Nexus web UI (8081) and expose 5000 port for docker private…
Mostafa Ghadimi
  • 5,883
  • 8
  • 64
  • 102
0
votes
0 answers

Need to cleanup Nexus images and keep last 10 images. However in new version there is no option for the same

In my organisation recently they updated the nexus to OSS 3.39, where as in older version we have an option to cleanup old images & can keep last 5 or 10 images. There is no such option in updated version. where as it allows me to cleanup images…
Praveen
  • 43
  • 1
  • 6
0
votes
0 answers

Nexus Scripting: how to get environment variables?

How can we access environment variables from a Groovy script uploaded on Nexus 3 repository manager? When trying to access an environment variable via Nexus script: final Integer HTTP_PORT = Integer.parseInt(System.getenv("DOCKER_REGISTRY_PORT")) ?:…
1Z10
  • 2,801
  • 7
  • 33
  • 82
0
votes
0 answers

Sonatype Nexus3 OSS - Routing Rules not working

I am experimenting with Sonatype Nexus 3 OSS in my company so we can have hosted and proxy docker repositories. And in a proxy repository, that proxies to an upstream repo, we are trying to filter what can be pulled, through the proxy repo, from the…
Lascou
  • 73
  • 4
0
votes
1 answer

Nexus is serving wrong npm package urls

I have sonatype nexus (configured as npm group of hosted repo and proxy repo) installed behind reverse proxy. After last update to OSS 3.41.1-01 we have problems installing via npm install. For some reason url of the actual files (.tgz) are served…
Kekec
  • 1
  • 2
0
votes
0 answers

Yum does not display the custom message sent from Sonatype Nexus Repository Manager

We are trying to implement Yum support for one of our plugins developed for Sonatype Nexus Repository Manager (NRM). The users set up Yum Proxy in NRM to download and install the packages Eg: yum install . Our goal is to send back and…
Shihaaz
  • 1
  • 2
0
votes
1 answer

Nexus3 npm repository shows bug icon in the front of dependency and could not packaging project

Nexus3 npm repository shows bug icon in the front of dependency. But most dependencies show normal icon. The dependency was uploaded manually. When I run command: npm run build, it print errors: Module build failed (from…
0
votes
1 answer

EINTEGRITY error when using Nexus proxy npm repo

So far we could build our node projects with default registry in .npmrc (registry = https://registry.npmjs.org/). We want to start publishing our internal libraries in local npm repository - we use Nexus 3. I created proxy repo directing to…
Maciej Szymonowicz
  • 603
  • 1
  • 6
  • 18
0
votes
0 answers

How to get all versions of an artifact on Nexus via API or Maven?

I have some pom artifacts uploaded to Nexus and I want to get through a curl or maven command or through an mvn command all the versions that are uploaded of that artifact. How would it be possible?
Víctor DC
  • 51
  • 6
0
votes
1 answer

deployment in k3s using local image

I was trying to deploy a nexus app in a k3s cluster, but I'm getting some errors as below: Warning FailedCreatePodSandBox 6s (x7 over 81s) kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image…
PabloM
  • 29
  • 6