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
3
votes
1 answer

How to enrich "GrabResolver" with Login Credentials

I'm trying to retrieve an Artefact from our internal Nexus OSS Maven Repository with Groovy's "GrabResolver" Annotation with the following Statement: @GrabResolver(name = 'bla', root = 'http://x.x.x.x:8081/repository/bla/', m2Compatible =…
Christoph Forster
  • 1,728
  • 4
  • 27
  • 39
2
votes
1 answer

Sonatype nexus3 server Manually remove items

I'm using nexus sonatype-work nexus3. Still it didn't have a cleaning process. So, it has filled. Is there any commands that I can use to find unused images and data? And, how can delete files manually?
prime
  • 769
  • 1
  • 13
  • 27
2
votes
3 answers

Download entire repository from Nexus 3.37.1

I was wondering as to how I can download an entire folder or a repository from Nexus 3.37. I tried the following command curl -X GET -u userid:password "https://nexus.com/abc/def/ghi/" -O I was able to download a single file in a directory using the…
Neoneuron
  • 103
  • 1
  • 2
  • 7
2
votes
1 answer

Nexus Repo 3 Logging - Log Viewer

As an admin I want to look at the log viewer and monitor what has been downloaded, uploaded, and changed from Origin IP and User ID. But I cannot figure out which default logger Nexus 3 would show this information. I see in Logging there are Loggers…
genshuwoodswind
  • 742
  • 1
  • 4
  • 8
2
votes
0 answers

how do I resolve 400 error code on deploy to nexus?

I am deploying an artifact to a Nexus repository installed on a Windows machine on the same subnet. The nexus server is OSS 3.29.2-02. maven show the following version info: % mvn --version Apache Maven 3.6.3…
AixNPanes
  • 1,170
  • 3
  • 14
  • 33
2
votes
1 answer

Cleanup Nexus Repository for old cached components

I have a nexus server and while monitoring it I found out that nexus is using 500 GB in Server. I was shocked to see that as I had an Idea that size of our artifacts would be around 30 GB. And I was right, checking on DB I found that size used was…
Vijay_Yadav
  • 107
  • 1
  • 9
2
votes
1 answer

How to upload an app bundle (.aab) onto my private Nexus repository?

I have a GitLab CI pipeline that builds an Ionic app and then uploads it onto my Nexus Maven repository. I generate both an apk and an aab file that I upload via cURL. However, even though the APK file is properly pushed to the repo, the AAB file is…
avazula
  • 472
  • 1
  • 6
  • 23
2
votes
1 answer

Nexus repository manager docker upgrade

I am trying to upgrade a NXRM3 repository which is running on a docker container with a persistent volume attached to it. The existing docker container is a custom built image by adding couple of plugins through Dockerfile. I want to build the…
2
votes
0 answers

Download all files from a Nexus directory of a raw repo

I have a Nexus raw-repository and want to download all files from a specific directory. I know the directory but not the names of the files in it. Nexus Version is 3.28.1-01. With wget i'm able to download one specfic file, with knowing it's…
Maik
  • 331
  • 2
  • 4
  • 12
2
votes
0 answers

When does Nexus 3 generate the simple index for pypi repositories?

I roughly scanned the sources of the nexus-repository-pypi plugin and found PyPiHostedFacetImpl#getRootIndex() which eventually generates a simple-html-index-file. But I couldn't find, where this is called. How is the index creation triggered?…
Obererpel
  • 55
  • 14
2
votes
0 answers

excluding parent dependencies when running sonar analysis

I am trying to use sonarQube on a Nexus Repository Plugin. When creating a simple maven-project and calling sonar:sonar \ -Dsonar.scm.provider=git \ -Dsonar.projectKey=de.zeb:sonartest \ -Dsonar.host.url=http://localhost:9000 \ …
2
votes
1 answer

mvn deploy:deploy-file publish multiple files to nexus

We want to publish the artifacts using mvn command to the "release" repository in nexus (not SNAPSHOT), however running multiple commands to add new files to one of the version isnt possible (will fail with HTTP 400 error). So, can any one please…
hare krshn
  • 176
  • 1
  • 4
  • 16
2
votes
2 answers

Prevent Nexus from pulling blocked package metadata

The Nexus3 routing feature will allow you to block a package from an upstream repo, but the blocked package will be included in the group metadata because it was merged from upstream repo metadata. This means if the blocked package of the proxy repo…
scader
  • 405
  • 3
  • 8
  • 19
2
votes
1 answer

Pull an Image from a Private Registry fails - ImagePullBackOff

On our K8S Worker node with below command have created "secret" to pull images from our private (Nexus) registry. kubectl create secret docker-registry regcred --docker-server=https://nexus-server/nexus/ --docker-username=admin…
user4948798
  • 1,924
  • 4
  • 43
  • 89
2
votes
0 answers

How to configure account locking for Sonatype Nexus UI?

How can we configure a maximum limit for login retry attempts for invalid credentials in the Sonatype Nexus repository manager UI (v 3.19.x) ? Sample User Interface screenshot
Danuka
  • 21
  • 1