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

What's the difference between Python pip's pip.conf and pypirc file?

I'm having trouble reaching a nexus server that we're using to store custom python packages. I've been told to change the settings in both my ~/.pypirc file and the ~/.pip/pip.conf file. What's the difference between those two files in how they're…
gunit
  • 3,700
  • 4
  • 31
  • 42
25
votes
3 answers

Upload sources to nexus repository with gradle

I successfully uploaded my jars to a nexus repository using the maven plugin for gradle but it didn't upload the sources. This is my configuration: uploadArchives { repositories{ mavenDeployer { repository(url: "http://...")…
gllambi
  • 648
  • 1
  • 7
  • 18
24
votes
3 answers

Nexus supports Mass upload of artifacts?

I wanted to know if we can have mass upload of artifacts to the repository in Nexus.
user170114
  • 625
  • 6
  • 16
  • 24
22
votes
1 answer

Nexus accepts upload but says it failed

When I execute mvn release:perform on a parent POM, the server is responding with this error about one of the child projects (filenames redacted): [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file …
Rob Johansen
  • 5,076
  • 10
  • 40
  • 72
22
votes
2 answers

sbt: publish to corporate Nexus repository unauthorized

Quick resolution The required credential expects the exact realm as defined by nexus. See below how to find the one you have defined, but most certainly is "Sonatype Nexus Repository Manager". Add the rest of the details to the credentials as…
fracca
  • 2,417
  • 1
  • 23
  • 22
21
votes
4 answers

Remove Docker images from Nexus Repository Manager OSS 3.0.1-01

I've been using Nexus to publish my Docker images for a couple of months and I really like the features it adds to a classic Docker Registry. Recently, the number of images we're storing caused disk space issues. I looked around the graphical…
Brice Argenson
  • 802
  • 2
  • 8
  • 13
21
votes
2 answers

"Repository for publishing is not specified" despite publishing succeeding

I have a separate Settings.scala file in my large SBT project which has the following: lazy val commonSettings = Seq( // ... lots of settings publishTo := Some("Sonatype Nexus Repository Manager" at …
rabejens
  • 7,594
  • 11
  • 56
  • 104
21
votes
3 answers

How to make mvn deploy prompt for password?

I'm currently storing my maven credentials in ~/.m2/settings.xml: my_server_id my_username my_password However, I'm not satisfied with having the password in clear text,…
rodrigorgs
  • 855
  • 2
  • 9
  • 20
21
votes
2 answers

Best practices in naming conventions on Maven artifactID (is there restriction?)

My team is new to Maven and we haven't been able to find any definitive guidance on selecting artifactIDs for our projects. I know that the Guide to naming conventions says that artifactIDs should be "whatever name you want with lowercase letters…
carej
  • 596
  • 1
  • 6
  • 18
20
votes
7 answers

Eclipse startup error

Today when I started eclipse I got the following error message: An internal error occurred during: "Updating indexes". Java heap space When I checked the log, there is this exception: !ENTRY org.eclipse.core.jobs 4 2 2011-06-14 13:44:26.546 !MESSAGE…
jasalguero
  • 4,142
  • 2
  • 31
  • 52
20
votes
3 answers

How to upload the python packages to Nexus sonartype private repo

I have configured the Nexus-OSS-3.14 private Python artifact server on aws cloud. I want to be maintain all my project related Python packages on my private repository server. I downloaded the all the Python packages on my local Linux box and I want…
Anand Palani
  • 211
  • 1
  • 2
  • 5
20
votes
1 answer

How to force Sonatype Nexus to update?

I am trying to use onejar-maven-plugin in my pom.xml: org.dstovall onejar-maven-plugin 1.4.4
Withheld
  • 4,603
  • 10
  • 45
  • 76
20
votes
3 answers

(SBT) How to disable default resolver and only use the company internal resolver?

We want to use company internal ivy/maven repository (artifactory) to improve the speed of resolving, and downloading the jar files, and also we want to use it to exchange binary jar files between different teams in our organization. I know we can…
DB Tsai
  • 1,378
  • 1
  • 13
  • 23
20
votes
2 answers

nexus or artifactory with nuget?

I am trying to introduce decent reference management to my organisation. Having used Nexus with Maven before, I know it to be far superior to the method of building everything locally. As this is a .Net shop I want to use NuGet instead of Maven. I…
Aidan
  • 4,783
  • 5
  • 34
  • 58
20
votes
5 answers

Sonatype Nexus REST Api fetch latest build version

How can I can use the Sonatype REST Api to fetch the build with the highest version (latest temporal build)? http://MY_REPOSITORY/nexus/service/local/lucene/search?a=ARTIFACT_NAME&v=ARTIFACT_VERSION Passing a build version as ARTIFACT_VERSION…
Giorgio
  • 13,129
  • 12
  • 48
  • 75