Questions tagged [nexus]

Nexus is a Repository Manager for Maven, NuGet 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.

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.

3121 questions
12
votes
1 answer

Copy newest jar file from nexus server with gradle

I am trying to copy the newest jar file (com.bar.baz:mapping:0.0.1-SNAPSHOT) from my Nexus server using Gradle. Downloading a specific version works using the following build.gradle: apply plugin: "java" repositories { maven { …
DaveFar
  • 7,078
  • 4
  • 50
  • 90
12
votes
2 answers

Docker push nexus private repo fail, 413 Request Entity Too Large

I've deployed an on prem instance of Nexus OSS, that is reached behind a Nginx reverse proxy. On any attempt to push docker images to a repo created on the Nexus registry I'm bumping into a 413 Request Entity Too Large in the middle of the push.…
Boaz Berman
  • 230
  • 4
  • 13
12
votes
1 answer

dotnet restore fails when using nuget proxy on nexus

I have a nuget proxy on Nexus (v 3.9.0-01) on an internal network. I haven't populated the local Nexus repo myself (and don't know how it was done or if any issues arose), however, I can upload new packages manually. The build takes place on Bamboo…
Michal
  • 2,078
  • 23
  • 36
12
votes
2 answers

error parsing HTTP 404 response body: invalid character '<' looking for beginning of value docker

I am currently trying to configuring nexus3 as private registry for docker images with nginx serving as a reverse proxy . Created 3 repos within nexus namely NexusDockerProxy(docker proxy), NexusDockerHosted(docker hosted,http port:4444) &…
Alim Azad
  • 471
  • 2
  • 9
  • 23
12
votes
6 answers

The timestamp in snapshot jar's maven-metadata.xml is more than a second than the actual jar's timestamp?

I encountered a quirky problem: I used "mvn deploy" (Maven 3.3.9, Jenkins 2.45, Nexus 2.12.0) to deploy a snapshot jar to my nexus in jenkins, result as below (suppose the jar name is userdao.jar): Uploaded:…
IcyLemon
  • 139
  • 1
  • 5
12
votes
7 answers

Purge old release from Nexus 3

I use Nexus 3 and I want to delete my old releases. In Nexus 2 there is a scheduled task called Remove Releases From Repository. It seems that this tasks is missing in Nexus 3. How can we delete old release from Nexus 3 ? Thanks
vespasien
  • 183
  • 1
  • 1
  • 9
12
votes
1 answer

Where to save the setting-security.xml file to use Maven encryption?

We are using TeamCity 9.1 and the default bundled Maven version 3.0.5 In the build, we are using Maven to interact with a Nexus server. We would like to encrypt the password in the Maven settings.xml file as described in this…
Sanchit Nagpal
  • 141
  • 1
  • 1
  • 4
12
votes
2 answers

Nexus webapp, how to use / instead of /nexus for base URI

I'm attempting to build a new Nexus server using 2.6.3 on Ubuntu 12.04 with OpenJDK 7. I have an empty repository running on port 8081, with nginx in front of it answering on port 80. But the app doesn't answer at http://nexus.example.net/, only at…
Mojo
  • 2,687
  • 5
  • 30
  • 42
12
votes
5 answers

maven deploy changed artifacts only

I'm using maven 2.2 with nexus 1.4.0 Let's say I have a pom-structure like this (with corresponding versions) parentproj, v1.0.1 - childproj1, v1.0.2 - childproj2, v1.0.7 childproj1 and childproj2 represent different parts of the application (e g…
David
  • 121
  • 1
  • 3
12
votes
6 answers

Nexus Repo gives 503 with Maven but not with browser

I just created a Nexus repo on a remote server. If I go to a browser on my local computer I see the pom file just fine. However, when I try mvn clean compile I…
Jackie
  • 21,969
  • 32
  • 147
  • 289
11
votes
3 answers

How to configure Nexus Repository Manager to support npm audit

When I try to execute npm audit in my (Angular 7) app, I get the following npm error: npm ERR! code ENOAUDIT npm ERR! audit Your configured registry (https://nexus.xxx.com/repository/yyy/) does not support audit requests, or the audit…
jasie
  • 2,192
  • 10
  • 39
  • 54
11
votes
0 answers

Kotlin Multiplatform Library Project Upload Issue - POM Multiple Artifacts

We have a Kotlin multi-platform library project with a build script which builds for various platforms, i.e. common, JS & JVM, using the "old-style" sub-project structure and processes. Under this system, the artifacts produced can be successfully…
gloc.mike
  • 344
  • 1
  • 9
11
votes
2 answers

Push Docker image to Nexus 3

After starting a Sonatype Nexus 3 image (command 1) I tried to create a repo and push one test image (command 2) to that repo but got an error 405 (error 1) command 1 $ docker run -d -p 8081:8081 --name nexus sonatype/nexus3:3.14.0 command 2 $…
Madox
  • 665
  • 1
  • 6
  • 14
11
votes
2 answers

docker login on private nexus => Error response from daemon: login attempt to http://ip:port/v2/ failed with status: 404 Not Found

I try to push a docker image to my private Nexus 3 registry. Before to push, i try to authenticate doing : docker login nexus_host:nexus_port But i got the following error message : Error response from daemon: login attempt to…
Loïc
  • 113
  • 1
  • 1
  • 8
11
votes
4 answers

Best practices to promote docker images across dev,qa,uat and production

Our application is containerized and using docker swarm as an orchestrator. I wanted to understand how do we promote docker images from dev, qa, uat and to production. For example, if I have an image created in dev as test:10 (10 is the build number…