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
1
vote
1 answer

recommended place to store nexus data

I have installed nexus 3 on my server at /mydir/nex/local/lib/nexus. This lays down the normal structure. So I have my data directory pointed to the default -Dkaraf.data=../sonatype-work/nexus3. I have a mounted file system on /mydir/nex where the…
Chris Bolton
  • 2,162
  • 4
  • 36
  • 75
1
vote
1 answer

Scoped NPM projects via proxy with Nexus 3.2

I've been setting up Nexus 3.2 and particularly the NPM repository at the moment. I have a proxy repository pointing toward registry.npmjs.org I have been successful at publishing to a hosted repository on the same instance as well as downloading…
Brian Topping
  • 3,235
  • 28
  • 33
1
vote
2 answers

Nexus 3 Rest api to check if component exist

Maybe I miss something but i can't find a way to upload a component(jar or dll) to the nexus 3 repository from the UI. So I am trying to build a tool for this job, to optimize the upload process I need a way to check if component exist in the nexus…
Ron Badur
  • 1,873
  • 2
  • 15
  • 34
1
vote
1 answer

Delete Repository via Nexus 3 REST API

In the Nexus 3 Reference about its REST API and scripting it is described how to upload Groovy scripts to Nexus 3 and how to run them. Examples are shown how to create new repositories, such as a Maven…
dokaspar
  • 8,186
  • 14
  • 70
  • 98
1
vote
3 answers

Sonatype Nexus3 docker image - How to setup an internal docker repository

Anyone had any experience setting this up? Https needs to be enabled in the sonatype/nexus3 config but the files are read only. How can this be edited without having to do a docker build using the nexus3 image? Can i login as root inside the…
Steve Fitzsimons
  • 3,754
  • 7
  • 27
  • 66
1
vote
1 answer

Upload non java artifacts to nexus 3.1.0-04

I want to be able to upload a non java artifact to hosted nexus3 repository. For this I used the curl commands described in this link uploadToNexus, but it worked only for nexus 2. I noticed also that we can create groovy script, upload them to…
gbenmansour
  • 85
  • 1
  • 7
1
vote
1 answer

npm returning 404 and 405 errors when connecting to Nexus 3

Background: I have a new installation of Nexus OSS 3 with which I have configured a repository to proxy to the official NPM repo. I have added users and added 'npm Bearer Token Realm' to my list of active realms. Repository status is "Online -…
CosmicChuck
  • 78
  • 1
  • 7
1
vote
1 answer

Nexus3 OSS: Installing Multiple Instances on Windows

This is actually an informational post to show some undocumented abilities of the windows nexus.exe. If anyone wants to provide some other useful information about Nexus3 OSS installation and/or configuration on Windows that is not readily available…
Pytry
  • 6,044
  • 2
  • 37
  • 56
1
vote
2 answers

Nexus 3 Docker container and Backup

I'm testing Nexus 3 from Docker container and I'm using https://github.com/sonatype/docker-nexus/blob/94d654faa2166b60fe2a4ad9629ff418a305dcb9/oss/Dockerfile. The issue is that when I upload artifact to the Nexus I cant find it in the file system in…
user3283749
  • 21
  • 1
  • 5
0
votes
0 answers

GItlab pipeline problem to connect private nexus repository

This is my pipeline stages: - build .tags: tags: - test-integration image: docker:20.10.16 variables: DOCKER_DRIVER: overlay2 DOCKER_HOST: tcp://docker:2375 DOCKER_TLS_CERTDIR: "" NEXUS_URL: test.registry.test.local …
Irakli
  • 97
  • 2
0
votes
0 answers

Sonatype Nexus Repository error: One or more objects could not be deleted

Ǐ am running my sonatype nexus repository on Docker container which is hosted on one Ec2 instance. It was working perfectly till yesterday. Today i was trying to upload node artifact but it is was not uploading process was stuck for few mins and…
0
votes
0 answers

how to publish a .jar file to nexus

I just build a Gradle project which resulted me with a .jar file. But now, when I want to publish it to the nexus repository, I am unable to do so. Here is my build script plugins { id 'java' id 'org.springframework.boot' version…
Akash
  • 1
0
votes
0 answers

Nexus disabled creation and updating of scripts

I've testing on using ansible to automate creation of a nexus server and when trying to deploy groovy, I get the below error. The automation successfully works upto declaring groovy script in the deploy_groovy.yaml file. TASK [nexus : Declaring…
kavx
  • 67
  • 1
  • 8
0
votes
1 answer

after deleting the docker images from nexus repository web interface the space is not freed up, remains the same and it is taking up my space

I am running the nexus repository on docker container Nexus version :3:3.41.1. the space goes on increasing, Need help. Also the cleanup policy does not work, I think because, I have created the blob storage and repository locally so it asks for…
0
votes
1 answer

TASK folder under log directory is getting huge

We are using Nexus 3.41.1 and we observed that tasks folder under log directory is getting huge we already did log rotation in logback xml but not sure how to get this for tasks folder, can you please guide, Regards, Sam
Samurai
  • 121
  • 1
  • 4
  • 15