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
161
votes
3 answers

What is the difference between Nexus and Maven?

What is the difference between Nexus and Maven? What is a basic scenario of usage only Maven? What about a scenario considering only Nexus? And how it looks when I want to use both?
ruhungry
  • 4,506
  • 20
  • 54
  • 98
133
votes
3 answers

How to specify maven's distributionManagement organisation wide?

I'm trying to figure out how to organize many (around 50+) maven2 projects, so that they can deploy into a central nexus repository. When using the mvn deploy goal, one does need to specify the target in the distributionManagement tag like…
mglauche
  • 3,344
  • 4
  • 28
  • 31
129
votes
16 answers

Error when deploying an artifact in Nexus

Im' getting an error when deploying an artifact in my own repository in a Nexus server: "Failed to deploy artifacts: Could not transfer artifact" "Failed to transfer file http:///my_artifact. Return code is: 400" I have Nexus running with one custom…
acimutal
  • 2,155
  • 2
  • 17
  • 22
120
votes
5 answers

Maven Snapshot Repository vs Release Repository

What is the difference between a Snapshot Repository and Release Repository? This is with reference to setting up Repositories (like Artifactory, Nexus etc)
Joseph
  • 2,155
  • 6
  • 20
  • 32
119
votes
12 answers

Should we use Nexus or Artifactory for a Maven Repo?

We are using Maven for a large build process (> 100 modules). We have been storing our external dependencies in source control, and using that to update a local repo. However, we are ready to graduate to a local repo that can cache central so that…
John Stauffer
  • 16,150
  • 10
  • 40
  • 35
113
votes
14 answers

Upload artifacts to Nexus, without Maven

I have a non-Java project that produces a versioned build artifact, and I want to upload this to a Nexus repository. Because the project isn't Java, it doesn't use Maven for builds. And I'd rather not introduce Maven/POM files just to get files into…
Adam Vandenberg
  • 19,991
  • 9
  • 54
  • 56
96
votes
8 answers

How to manually deploy artifacts in Nexus Repository Manager OSS 3

After installing Nexus Repository Manager OSS 3 I do not see option Artifact Upload to upload artifacts through web page. In Nexus Repository Manager OSS 2.13 there is option to do that operation. Anyone can show me the way how to upload artifacts…
Paweł Głowacz
  • 2,926
  • 3
  • 18
  • 25
81
votes
5 answers

How to store releases/binaries in GitLab?

I am building a workflow with Gitlab, Jenkins and - probably - Nexus (I need an artifact storage). I would like to have GitLab to store releases/binaries - is it possible in a convenient way? I would not like to have another service from which a…
Kajsa Gauza
  • 1,348
  • 1
  • 12
  • 22
77
votes
13 answers

Maven release plugin fails : source artifacts getting deployed twice

We are using the maven release plugin on hudson and trying to automate the release process. The release:prepare works fine. When we try to do the release:perform , it fails because it tries to upload a source artifact twice to the repository. Things…
77
votes
6 answers

how do I get sbt to use a local maven proxy repository (Nexus)?

I've got an sbt (Scala) project that currently pulls artifacts from the web. We'd like to move towards a corporate-standardized Nexus repository that would cache artifacts. From the Nexus documentation, I understand how to do that for Maven…
Harlan
  • 18,883
  • 8
  • 47
  • 56
67
votes
7 answers

How should I set _auth in .npmrc when using a Nexus https npm registry proxy?

Context My .npmrc file seems to be correctly read (checked with npm config ls -l both from command line and from Maven build). the machine on which npm is run cannot connect directly to the net, it can only connect to a Nexus npm registry url.…
Kraal
  • 2,779
  • 1
  • 19
  • 36
66
votes
15 answers

How to debug 'npm ERR! 403 In most cases, you or one of your dependencies are requesting a package version that is forbidden by your security policy.'

I am currently trying to set up a Jenkins and a private npm repository (Sonatype Nexus). I get the following error when I try to publish to the repository within a Jenkins build pipeline. + npm publish --registry…
andymel
  • 4,538
  • 2
  • 23
  • 35
66
votes
4 answers

How long does Sonatype staging take to sync my artifacts with Maven central

I have successfully deployed my Maven artifacts (release) into Sonatype's staging repository with Maven. Uploading address is https://oss.sonatype.org/service/local/staging/deploy/maven2/ I would like to know how long will it take before I can see…
Jack
  • 771
  • 1
  • 5
  • 4
58
votes
5 answers

Unable to publish to an NPM Registry (local)

I am running Nexus 3.0.1-01, and am using it to host both Maven repositories and NPM registries. For NPM, I have a local mirror of npmjs.org, a local NPM registry and a group that combines the two... I have been using this with npm internally,…
EdH
  • 4,918
  • 4
  • 24
  • 34
56
votes
3 answers

How to set _auth for a scoped registry in .npmrc?

I am wondering how to configure the .npmrc file so that I can have a default registry and a different scoped registry with authentication. I am using Nexus for the private repository and I am not sure how to set authentication for the scoped…
Willem van Ketwich
  • 5,666
  • 7
  • 49
  • 57
1
2 3
99 100