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

maven-metadata.xml is not updated when deploying to nexus

i am using Apache Maven 3.0 Nexus Open Source Edition, Version: 1.8.0.1 this is part of my pom.xml maven-deploy-plugin 2.5
Janning Vygen
  • 8,877
  • 9
  • 71
  • 102
14
votes
4 answers

Can I create a Maven POM-only (BOM) build using the Gradle maven plugin to be deployed to Nexus?

I have a Gradle project which uses Spring's dependency management plugin to define a list of dependency versions. I am also using the Maven plugin to deploy the project to a Maven repository. I would like to be able to deploy this as a Maven bill…
M. Justin
  • 14,487
  • 7
  • 91
  • 130
14
votes
2 answers

Release a snapshot to nexus using maven 3.0.5

I am unable to release a snapshot version of an artifact which I build using maven to nexus. The version of my artifact states 1.0.0-SNAPSHOT. I can execute mvn clean install without an issue. But when I try to deploy using mvn deploy , I get the…
hYk
  • 764
  • 1
  • 8
  • 21
14
votes
5 answers

Sonatype Nexus: How to use Amazon S3 as a storage for maven artifacts?

I've got a task to examine how to make our internal Nexus installation (installed on CentOs/RHEL) to store artifacts in Amazon S3 cloud storage (or any other cheap cloud storage). So far, I had found only one solution - mount s3 as a file system,…
Aleksey Timohin
  • 591
  • 1
  • 9
  • 15
14
votes
1 answer

Does a maven repository have a standard format?

How are repos laid out? Are they the same? If so, who specifies the format.
chad
  • 7,369
  • 6
  • 37
  • 56
13
votes
1 answer

Detailed (download) statistics for artifacts of public repositories like maven.org

In former days project hosting sites like sourceforge.org provided detailled (download) statistics for every project. This was helpful to me as a user for finding projects that are more popular (and therefore more "secure" and futureproof). But I…
Markus
  • 4,062
  • 4
  • 39
  • 42
13
votes
2 answers

405 Method Not Allowed when deploying artifact to Nexus

I am deploying an artifact to a Nexus snapshot repository that allows redeployment, using the maven command: mvn deploy:deploy-file -Durl=https://nexus.perque.com/repo/browse /pont-aeri -DrepositoryId=tomcat-nexus.devops-snapshots…
13
votes
4 answers

How to parse/unzip/unpack Maven repository indexes generated by Nexus

I have downloaded the indexes generated for Maven Central from http://mirrors.ibiblio.org/pub/mirrors/maven2/dot-index/nexus-maven-repository-index.gz I would like to list the artifacts information from these index files (groupId, artifactId,…
Laurent
  • 14,122
  • 13
  • 57
  • 89
13
votes
1 answer

change deployed artifact name based on profile

I have in a web application's pom file, a build profile, which does some necessary things (in my code) for qa testing. I have this code on svn and this code is compiled in Hudson, which deploys artifacts in nexus.. Hudson has two jobs, one for qa…
Alexandros
  • 733
  • 2
  • 10
  • 24
13
votes
4 answers

Can't use Nexus Repository Manager 3.0 default admin user

Just installed Nexus 3.0.0-03, started up, followed the doc, but can't login with default admin/admin123. The only error I can see is the login refusal message:Incorrect username or password, or no permission to use the application.
coolnodje
  • 789
  • 1
  • 7
  • 20
13
votes
3 answers

Upload/Download entire directory to Nexus through Maven

Is it possible to upload/download an entire directory and all of the sub-directories within it to/from a Nexus repository server?
Peter
  • 131
  • 1
  • 1
  • 3
13
votes
2 answers

SBT Publish only when version does not exist

So I have a job in my CI app that publishes to Nexus when a change pushed to develop on an app. Is there a way to make ./sbt publish idempotent? Because occasionally we want to run the job again because of a temporary issue, and it'll error out…
Peter Souter
  • 5,110
  • 1
  • 33
  • 62
13
votes
4 answers

Bower mirror repository

Using Maven, you get Maven repositories. Tools like Nexus ou Artifactory have the ability to mirror (or proxy) remote repositories and self-hosted ones to expose an aggregated view of all downloadable artifacts (or dependencies in the Bower jargon).…
Doc Davluz
  • 4,154
  • 5
  • 30
  • 32
13
votes
2 answers

Maven not using local repository

I have a small problem with my Maven config. All other questions and answers here didn't solve my problem, so I'm starting a new question. My problem is, that my Maven is not using the local repository. It's always fetching the artifacts from the…
virtualmarc
  • 533
  • 1
  • 4
  • 16
13
votes
5 answers

Deleting artifacts older than 2 years from local nexus repository

We're running nexus on some old hardware which is limited in disk space and would like to remove artifacts older than a certain threshold. Is there any way to do this other than a combination of find and curl?
Jon Freedman
  • 9,469
  • 4
  • 39
  • 58