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 there any way to list latest Nexus Artifacts in Jenkins?

I am using Acive Choice Reactive Parameter plugin to list down Nexus Artifacts. This is the groovy script which I'm currently using. import groovy.json.* def targetUrl =…
Janith
  • 217
  • 1
  • 6
  • 15
0
votes
1 answer

Nexus upgrade from 2.x to 3.x is missing timestamp for the arifacts

We are upgrading our nexus artifact repository from 2.x to 3.x version. During this process, after the migration is complete, there is a timestamp missing for the artifacts. Any solution regarding this will be helpful.
kiran
  • 1
  • 1
0
votes
0 answers

Does Nexus 2.x OSS support multiple versions/automatic age off?

I'm looking to use the OSS version of Nexus 2 for artefact management? Does it support automatic retention and removal of multiple versions of an artefact so that only so many versions are retained? Example: I'd like Nexus to automatically (via some…
bzo
  • 1,532
  • 7
  • 27
  • 40
0
votes
1 answer

Upload artifact using Nexus API with PowerShell

Does anybody know what the request body looks like if I want to use Nexus API to upload artifact to a repo? $token = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("admin123:password123")) $header = @{authorization = "Basic…
0
votes
1 answer

How to connect from Azure pipeline to private Container Instance?

I've got a pipeline building an RPM package which I'd like to upload to our Nexus server. The Nexus server runs on an ACI (Azure Container Instance). The ACI is using a private network. IF I've got it right the intended way is: Create a Generic…
JG801
  • 121
  • 2
  • 7
0
votes
1 answer

Nexus: Getting connection timed out while uploading file into getting

Getting an error which uploading .tgz file into nexus using jenkins pipeline script. Stage using in my pipeline script as stage('Upload tar file into nexus') { steps { sh """ curl -f -v $NEXUS…
Phani
  • 1
  • 4
0
votes
1 answer

node.js - How to upload ReactJS application into the nexus repo

Having the scenario for publishing my ReactJS application into the nexus repository using Jenkins pipeline script. Anyone having idea?
Phani
  • 1
  • 4
0
votes
1 answer

How to associate artefacts under one business version in Nexus when every module has specific version?

It is probably not a good practise in this case, because the problem would be solved by unifying the versions of all artefacts, but I am interested in a possible solution for this case. I have one git repository: artefact -> 1.0.0 second git…
Peter S.
  • 470
  • 1
  • 7
  • 17
0
votes
1 answer

How to list all assets (groupId, name, size) in a Nexus3 repository?

I know it is very simple to do in OrientDB : select * from asset where bucket.repository_name = 'my-repo-release'; but I need to get this list remotely, not in local orientdb console, so I need a groovy script and I can't find it anywhere.
Tristan
  • 8,733
  • 7
  • 48
  • 96
0
votes
1 answer

The parameters 'url' for goal org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file are missing or invalid

I'm using the maven-deploy-plugin to deploy into Nexus an artifact generated by a task of maven-antrun-plugin at the end of my build. The Ant task simply creates a file .sh of the assembled archive built by Maven. I had to include…
Alessandro C
  • 3,310
  • 9
  • 46
  • 82
0
votes
1 answer

Can't download using Nexus 3 REST API and CURL

I'm trying to download the latest snapshot dependency of a zip on Nexus 3 (version 3.22.1-02) from a command line using curl: curl -u username:password -X GET…
Nicolas
  • 23
  • 1
  • 7
0
votes
1 answer

Sonatype nexus : Create role based on repositories name

I'm actually managing a Nexus 3 instance for a multi-team compagnie and I want to dedicate some repository to some team. To be more clear, I have a team A and a team B and npm, pypi and raw repositories for each teams. Team A can't access team B…
Guillaume
  • 1
  • 4
0
votes
1 answer

How to cancel a nexus task properly (as executable script)?

I have written a cleanup script for a nexus repository, that verifies if a component is used by calling a rest interface of a third party system. Long story short: This script has a significant runtime due to the amount of components and network…
Thomas
  • 689
  • 3
  • 8
  • 14
0
votes
1 answer

nexus proxy repository for npm registry 2fa enabled

I have a issue with nexus and npm registry. we publish private node packages to "https://www.npmjs.com/" and our account has 2fa enabled. We also need to download public node packages. And we use npm auth token to access private node packages. Now…
Gabriel Wu
  • 1,938
  • 18
  • 30
0
votes
0 answers

Nexus repository build new container

I've recup the nexus-data folders where they are all my modification, I tried to build it with FROM sonatype/nexus3:3.22.0 USER root:0 RUN rm -Rf ./nexus-data/* COPY ./nexus-data ./nexus-data RUN chown -R 200:200 ${NEXUS_HOME} ${NEXUS_DATA}…
azrael
  • 13
  • 3