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
19
votes
4 answers

Nexus Won't Serve SNAPSHOTs From Default Public Group

For some reason I can't get Nexus to serve my SNAPSHOT artifacts via the default public group. I've read the relevant bit of the Nexus manual and search Google, but nothing I do seems to work. I've implemented the stuff in section 4.2. (Configuring…
fatboab
  • 413
  • 1
  • 5
  • 12
19
votes
3 answers

Maven: is there a simple command to test repository access?

Some of my users have trouble accessing our local Nexus repository. Some of them are somewhat newbies in maven configuration. Sure they can test if everything is downloading fine running mvn install, but I'd like to help them to isolate their…
neves
  • 33,186
  • 27
  • 159
  • 192
19
votes
2 answers

How can I use an Encrypted Password to a Maven Repository in Gradle

I'm currently trying to transisiton a maven build to a Gradle build. The show stopper hurdle I've hit is that our internal artifacts are deployed to an internal repository that requires authentication to read. And you know what authentication…
shemnon
  • 5,318
  • 4
  • 28
  • 37
19
votes
1 answer

What is a p2 repository?

I'm working on a project now for a few months where we use "p2-repositories". I know that I get my dependencies from them. But now I want do dive deeper into the subject and I wonder what exactly is a p2-repository - the definition. I think it has…
armin.miedl
  • 1,070
  • 1
  • 11
  • 16
19
votes
12 answers

Sonatype Nexus 3 - get latest snapshot

We've just upgraded out nexus installation to the latest release (3.x). Is there any way to get the latest version of a given snapshot artifact? Nexus 2 had a nice API which is not supported anymore. Same question (but for the old version) has been…
Daniel
  • 383
  • 1
  • 3
  • 9
19
votes
3 answers

Setting a single server credentials in Maven for multiple repositories

Can I have multiple repositories in Maven settings.xml with a single server credentials? We're using Maven 3.0.4 to deploy artifacts to Nexus pro version 2.2.1 We have multiple repositories on the same server, and a user uses the same credentials to…
Eyal Azran
  • 379
  • 1
  • 3
  • 14
18
votes
7 answers

Nexus artifact download using CURL

I'm trying to download an artifact uploaded to nexus using CURL. But I'm unable to get it downloaded. The below command execution from command prompt doesn't download the required zip file and I'm using Nexus admin account curl -X GET -u userid:pwd…
Nagendira
  • 201
  • 1
  • 3
  • 6
18
votes
3 answers

How to download artifacts using wget from Sonatype Nexus

I got a Sonatype Nexus instance up and running and need to write a script to download a specific artifact manually. I tried using the REST API and wget: wget --user=username --password=password…
dr0n3
  • 267
  • 1
  • 4
  • 12
18
votes
2 answers

Deploying Maven artifact to multiple repositories with different settings

We have numerous Java projects, which are CI built with Jenkins. These are deployed to our own Nexus server just fine. The problem is, we need to provide these libraries to a third party, but without the source code. So for each project, in Nexus we…
Siaynoq
  • 452
  • 1
  • 5
  • 13
18
votes
5 answers

Maven SNAPSHOT jar file names not consistent using Maven Assembly in MANIFEST file

Here is the scenario: Two Maven 3 project builds. Build 1 has snapshot jars that get deployed to Nexus. Build 2 has dependencies on the snapshots, referenced like 1.0.0-SNAPSHOT, that gets packaged up and zipped up using the mvn clean package…
Thaldin
  • 283
  • 3
  • 15
17
votes
2 answers

Nexus3: move a specific Maven repository into an another blob store

I've just installed Nexus 3 by upgrading from Nexus 2 and noticed that every Maven repository is now in the default blob store. I would like to move the releases repository to be hosted from a separate blob store. What's the easiest way to achieve…
NagyI
  • 5,907
  • 8
  • 55
  • 83
17
votes
1 answer

Docker Registry vs Nexus/Artifactory

Is the 'Docker registry' in Docker engine similar to Nexus/Artifactory? What are the similarities and differences between them? If we already have Nexus, can we use it as an alternative to Docker registry and plug it into the Docker engine? Could…
Sri
  • 573
  • 2
  • 6
  • 20
17
votes
4 answers

How to disable nexus-staging-maven-plugin in sub-modules

I'm looking into replacing the maven-deploy-plugin with the nexus-staging-maven-plugin. Now some of the sub-modules of my project (e.g. integration test modules) are not to be deployed to the Nexus server. I used to disable the deployment of these…
Gunnar
  • 18,095
  • 1
  • 53
  • 73
17
votes
2 answers

How to overcome "No repositories found" error in IntelliJ

I'm getting "No repository found" errors in IntelliJ not only for our own repository, but even for the majority of the repositories listed by default under Maven configuration. Only jfrog.org and jboss.org are reported OK with artifacts. The rest of…
kukido
  • 10,431
  • 1
  • 45
  • 52
16
votes
4 answers

Where do I put my credentials when using Ivy and a private company repository?

I'm using Ant + Ivy, and my company has recently set up a Nexus server for our own private libraries. Ivy can get dependencies from the Nexus server by using a ibilio resolver and m2compatible=true, but I have to put my credentials in a…
kalithlev
  • 926
  • 3
  • 12
  • 19