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

Unable to update maven configuration from nexus repository

Failure to transfer org.apache.maven.plugins:maven-resources-plugin:2.6 from https://devserver/nexus/content/groups/public was cached in the local repository, resolutions will not be reattempted until the update interval of nexus has elapsed or…
Srini
  • 823
  • 5
  • 10
  • 29
1
vote
1 answer

Backup and Restore Nexus OSS 3

I was wondering if there is a standard way to backup and restore a Nexus OSS 3 Artifact Repository. Is it enough to backup the "data" directory and copy it to a running new instance? I use different types of repositories - Maven, NPM, Docker etc.
Christoph Forster
  • 1,728
  • 4
  • 27
  • 39
1
vote
0 answers

Oracle driver com.oracle.jdbc or com.oracle.weblogic?

I configured my Nexus to proxy maven.oracle.com and I am able to browse the index, so I know it worked. Oracle's documentation from this year (https://blogs.oracle.com/dev2dev/entry/oracle_maven_repository_instructions_for) gives this as the…
AfterWorkGuinness
  • 1,780
  • 4
  • 28
  • 47
1
vote
1 answer

How to activate NuGet repository format on Nexus 3

Preambule: I would like to setup a NuGet repository hosted inside of my company. We already had a Nexus OSS 2.13 running so I tried setting up a Nuget hosted repository on it, and uploaded my package there to test it. I then configured NuGet repos…
Eregrith
  • 4,263
  • 18
  • 39
1
vote
1 answer

How to force Maven to ignore from dependcy pom.xml

I had a pom in my dependencies which contains : spring-releases http://repo.spring.io/libs-release-remote/ public-jboss
Saku
  • 21
  • 1
  • 4
1
vote
2 answers

uploading multiple files to Nexus using curl commands

I'm currently working on getting a script to upload my artifacts to Nexus using CURL. I can get it to work with one artifact file without any problems using the command: curl -v -F r={repo_id} -F hasPom=true -F e=jar -F file=@pom.xml -F…
Ractoc
  • 239
  • 2
  • 9
1
vote
1 answer

Sonatype Nexus LDAP plugin installed but not able to activate

I just installed Nexus OSS 3.0.2-02. However, in the Realms menu there is no LDAP that I could add: Under Bundles, com.sonatype.nexus.plugins:nexus-ldap-plugin is listed in version 3.0.2.02 as installed, but I don't see, how to activate it: I…
Michael Niemand
  • 1,578
  • 3
  • 23
  • 39
1
vote
1 answer

Get the names of artifacts inside a group from Nexus repository

I want to get all the artifact names on a particular group name in my nexus repository. I have tried lucene web api for this. like i used a url like, http://localhost:8080/nexus/service/local/lucene/search?g=my.group.name But on the xml response I…
ѕтƒ
  • 3,547
  • 10
  • 47
  • 78
1
vote
1 answer

Nexus support for api.typings.org

I'm trying to set up a Jenkins CI environment which is behind a corporate firewall and is also using Nexus to proxy repositories. Changing the firewall settings is not an option, but Nexus is able to bypass the firewall so I need to set up Nexus to…
A. Duff
  • 4,097
  • 7
  • 38
  • 69
1
vote
2 answers

Deploying snapshot sources - Is it possible ? It increments build number

guys I don't know what could be wrong, but I'm deploying snapshot and sources with gpg:sign-and-deploy-file, but the sources name does always have the value of the following buildnumber. Like artifact-timestamp-1.jar and…
lisak
  • 21,611
  • 40
  • 152
  • 243
1
vote
1 answer

Using Nexus REST API to retrieve artifacts with different classifier

I want to download the artifacts of a project from command line with wget. The project has artifacts with different classifiers. But the classifier is not always equal and sometimes a project does not have any artifacts with classifer. The only one…
Oni1
  • 1,445
  • 2
  • 19
  • 39
1
vote
2 answers

Maven SNAPSHOT version not loaded from Nexus

We have a Sonatype Nexus running in our environment which has another Nexus as proxy repository configured. When we consume our dependencies we ask our Nexus for them. This worked fine until yesterday when I added a new dependency to our project.…
Danielku15
  • 1,490
  • 1
  • 13
  • 29
1
vote
1 answer

Create Maven Project with Nexus Repository OSS 3 [offline]

My problem is that I can't create a new Maven project after adding my Nexus repository to the .m2 settings.xml. I've installed Nexus Repositoy Manager OSS 3.0.2 as my local Maven repository. I have a machine which is in offline mode and can not…
1
vote
1 answer

Access Sonatype nexus artifact from nexus plugin after being uploaded

I want to access an artifact (zip File containing a delivery) uploaded to a sonaytype nexus 2.14.0-01 to unzip it in a tmp directory and examine its content. I am able to hook into the on handle request for the create action, however, at that time…
user2402987
  • 43
  • 1
  • 3
1
vote
2 answers

Nexus3 Groovy script to add role using External Role mapping from LDAP

I'm working with Nexus3 groovy scripting to Provision/Bootstrap my Nexus3 - OSS instance. While looking through the complex scripting examples and the shell scripting examples as well as the sonatype books, i'm not seeing any clear documentation…
JPAnderson
  • 59
  • 1
  • 8