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
1
vote
2 answers

Install Sonatype Nexus 2 as a service

I'd like to know how to install Sonatype Nexus 2 as a service on GNU/Linux in order to get it configured properly and started automatically at startup.
Lorenzo Lerate
  • 3,552
  • 3
  • 26
  • 25
1
vote
1 answer

maven deploying 3rd pom's without jar to nexus repository

When I want to deploy 3rd jars to my nexus 3 repository I use this command: mvn deploy:deploy-file -Dfile= -DpomFile= -DrepositoryId= -Durl= but…
Ron Badur
  • 1,873
  • 2
  • 15
  • 34
1
vote
1 answer

Nexus sonatype groovy get LDAP user

I'm trying to validate Nexus Sonatype configurations. I discovered Groovy scripts from here : https://github.com/savoirfairelinux/ansible-nexus3-oss/tree/master/templates/groovy I'm able to configure LDAP in Nexus Sonatype, or even create a new…
Isador
  • 595
  • 3
  • 10
  • 23
1
vote
2 answers

How to publish all jar for an existing project in a nexus/sonartype?

I have a maven project, and I have already all my dependencies in my local host. I want to push all these dependencies into nexus/sonartype. I don't want to push my jar one by one by uploading via nexus interface. So I copied the content of my maven…
Youssouf Maiga
  • 6,701
  • 7
  • 26
  • 42
1
vote
2 answers

bash script require which download latest version of the **war** (either snapshot or release ) file nexus repository in tomcat

I need a bash script which download latest version of the war (either snapshot or release ) file nexus repository in tomcat Please find me script. Need experts…
1
vote
1 answer

Why does Nexus Repository Manager OSS 3.x not support Java (Maven) artefacts

The latest version of Nexus Repository Manager OSS supports a new artefact types: Docker, npm, RubyGems. But it appears to drop support for artefact formats supported in the previous version: Maven, P2, OBR, Yum. Why is that?
Mike Williams
  • 316
  • 1
  • 6
1
vote
1 answer

Sync up between two Nexus repository

I have 2 nexus repositories respectively for different development groups. Each repository will have its own hosted "Releases". Now my question is: - Is it able to sync up these 2 Releases repo regularly? And how? I hope we don't need to ask…
wenxzhen
  • 75
  • 1
  • 2
  • 12
1
vote
1 answer

Nexus integration with Jenkins

Is there a way to list all the version uploaded in Nexus repositories. I am working with Jenkins, and trying to show the versions uploaded in Nexus repositories. EDIT: I am not using MAVEN releases, i have the compresses files as zip. The format we…
useranon
  • 29,318
  • 31
  • 98
  • 146
1
vote
1 answer

How to fix upgrade issue from nexus 2.14.1-01 to 3.1.0-04

I try to upgrade from 2.14.1-01 to 3.1.0-04. When I invoke upgrade I got: The nexus 2 log contains the following: 2016-11-22 15:06:21 INFO [pxpool-1-thread-14] *TASK com.sonatype.nexus.migrationagent.repository.RepositoryMigrationTask - …
AnatolyS
  • 4,249
  • 18
  • 28
1
vote
1 answer

Sonatype Nexus 3 OSS hosted nuget bulk-add packages?

We have just installed Sonatype Nexus 3.1.0-04 and I remember from V2 that a hosted Nuget (local) could point to an existing directory. It seems that this is not possible with V3? Where you have to publish each package manually. Issue is that we…
Werner
  • 1,229
  • 1
  • 10
  • 24
1
vote
1 answer

Maven release plugin: perform a few deploy in a row

We need to deploy same artifact into two (or more) nexus repositories. For this purpose we are using two separate profiles with different distributionManagement sections like this: deploy-nexus1
1
vote
1 answer

Sonatype Nexus 3.1: Archetype catalog not generated

Ever since we've upgraded to Sonatype Nexus 3.x we are missing our custom archetypes in the repository. When browsing to http://repo/repository/maven-releases/archetype-catalog.xml I am being shown an empty archetype XML: I have tried rebuilding…
Ahatius
  • 4,777
  • 11
  • 49
  • 79
1
vote
1 answer

Cannot access Nexus Repository Manager 3 with the REST API

I written a lot of scripts for a Nexus Repository Maanager with the version 2.11, where i use the REST API to uploading and downloading several components. Now, it was upgraded to the version 3.1 and neither scripts work well. I always get the…
Oni1
  • 1,445
  • 2
  • 19
  • 39
1
vote
1 answer

Apache 2.2 reverse-proxy behind Nexus 3

The apache server is configure with following items : ... ProxyRequests Off ProxyPreserveHost On ProxyPass /jenkins/ http://localhost:8080/ timeout=300 ProxyHTMLURLMap http://localhost:8080…
ruddy32
  • 31
  • 3
1
vote
0 answers

Maven site-deploy to nexus with webdav

I fail to deploy the site to Nexus. I already have my with username/password setup in maven settings, but it still couldn't get the credentials, and wonder why connecting to port 80 instead of my Nexus port 8081. [DEBUG] configureWagon…
Question Asker
  • 231
  • 1
  • 2
  • 6