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

Repository/image with invalid name in Sonatype Nexus3 Docker registry

Context I am using the Docker registry feature in Sonatype Nexus3 (version 3.18.1-01 OSS) to store private Docker images. A couple of days ago, images with invalid names ended up in the registry, causing multiple reoccurring errors with internal…
1
vote
0 answers

Configure Nexus via command line (non gui)

I have dockerized Nexus3, I have this requirement to automate the configuration of LDAP, nexus-data via command line (bash script). However, I've been searching this in the documentation if they have cli functions which can do these requirements,…
Yejin
  • 541
  • 2
  • 15
  • 32
1
vote
1 answer

Can I store and access files in a Sonatype nexus3 repository like i would do on github or gitlab?

I'm comparing different Registries and Repositories at the moment. Can anybody tell me how to store and access files in a Sonatype nexus3 repository? Not pretty sure this is possible at all due to the fact nexus3 has another focus.. Thanks
Ralf157
  • 73
  • 5
1
vote
1 answer

Sonatype Nexus gives 401 for some unkown reason

We have to work with Nexus OSS version 3.20.1-01. We have a problem with it when we try to deploy or push an Maven2 artifact(jar) to Nexus. We used a account test123 with password test123. test123 has privlidges nx-admin in nexus. If we try to…
Ben
  • 594
  • 1
  • 9
  • 24
1
vote
0 answers

Jenkins and Nexus: How to upload javadoc and sources?

I am using Jenkins to build my artifacts and to upload them to my Nexus. While this works fine with the artifact itself, I am unable to upload both the jars containing the sources and the javadoc. Trying to results in a BadRequest from my…
Schlork
  • 31
  • 7
1
vote
1 answer

Nexus with Private Google container Repo

I'm trying to proxy a private Google Container Registry with Nexus 3 Repository OSS. Not sure how to do the authentication bit. I found a suggestion for Artifactory: Create a new Docker remote registry repository Uncheck the Enable Token…
FreshMike
  • 481
  • 1
  • 6
  • 26
1
vote
1 answer

Use Nexus As Dependency Resolver using Gradle in Spring Boot Application

I am developing application using spring boot, i am using gradle as build tool, i want to configure gradle to resolve their dependencies instead of maven central or jcenter go to my Local nexus server get all dependencies from their and build…
Natesh
  • 331
  • 1
  • 4
  • 15
1
vote
1 answer

How to migrate Gitlab Docker Registry to another docker registry?

I am trying to migrate from gitlab-ce to gitlab.com. This includes Docker registry as well. What I need to migrate Gitlab Docker Registry to hosted Docker registry (Nexus3). This might be manually done I imagine, but is there any more efficient way…
Badr
  • 694
  • 1
  • 7
  • 26
1
vote
1 answer

Sonatype Nexus search api does not return all the artifacts

We use sonatype nexus OSS 3.14.0-04 to store all our artifacts and we use Jenkins as our CI/CD took. I introduced snapshot support recently. From Jenkins I use the below groovy script to fetch all artifact versions and populate an Active choice…
smaikap
  • 474
  • 1
  • 7
  • 19
1
vote
1 answer

migrating from Apache Archiva to Nexus 3

I am trying to move all repositories I am using to Nexus 3. I use Apache Archiva as a Maven repository. I read that it's possible to copy repos between Archiva and Nexus 2. Is there any way to do the same with Nexus 3 ?
Badr
  • 694
  • 1
  • 7
  • 26
1
vote
1 answer

Nexus proxy to node-sass-binaries

I am behind a corporate proxy, so my build can't download the node-sass-binaries directly from github. For now I have a Nexus3 raw repository (hosted). The biniary files are downloaded from…
ochs.tobi
  • 3,214
  • 7
  • 31
  • 52
1
vote
1 answer

How do we search nexus repo tag using curl?

Does anyone know how to search for a certain tag in nexus repo? I've tagged some artifacts and docker images in my repo and I'm able to find them using the search: I would like to do the same using the command line interface. curl -u user:pwd -X…
Pat B
  • 1,915
  • 23
  • 40
1
vote
1 answer

nexus3 size used by repositories does not match database size on disk

I'm analyzing the disk usage of our nexus3 instance. I used this question and answers to get the disk space used by all repositories: cd /opt/nexus java -jar ./lib/support/nexus-orient-console.jar > CONNECT…
Chris Maes
  • 35,025
  • 12
  • 111
  • 136
1
vote
1 answer

Serve docker repository on non-root path (nginx + Sonatype Nexus)

We have several Docker repositories, served with a Sonatype Nexus server. The problem is that we want to serve them from paths instead of serving them on different domains. The reason is simple: it is easier to configure new paths than new domains,…
MagMax
  • 1,645
  • 2
  • 17
  • 26
1
vote
1 answer

Upload to nexus3 using python requests

I have a python script where I'm trying to upload an asset to nexus 3 using python requests library. The code I displayed below works for nexus 2. But as the rest api is changed for nexus 3 I'm finding difficulty to upload the assets to nexus 3. I…
Udhay
  • 76
  • 1
  • 6