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
16
votes
2 answers

kubectl not able to pull the image from private repository

I am running kubeadm alpha version to set up my kubernates cluster. From kubernates , I am trying to pull docker images which is hosted in nexus repository. When ever I am trying to create a pods , It is giving "ImagePullBackOff" every time. Can…
sitakant
  • 1,766
  • 2
  • 18
  • 38
16
votes
2 answers

Is it possible to proxy a single file with Nexus?

I'm trying to proxy node-sass and other npm libraries through Nexus, but run into problems when a post install step of node-sass tries to pull the file https://github.com/sass/node-sass/releases/download/v3.10.1/linux-x64-48_binding.node from…
A. Duff
  • 4,097
  • 7
  • 38
  • 69
16
votes
1 answer

docker login not working with nexus 3 private registry

Nexus UI Config I am running Nexus Repository Manager OSS 3.0.1-01 on a linux VM On that VM, I have nginx working to reserve proxy http requests as https. My SSL key is signed by a trusted CA I created a maven repository, which works without issues,…
Kid Oob
  • 241
  • 1
  • 2
  • 9
16
votes
4 answers

What privileges does a user need to upload/deploy to every repository hosted on local Sonatype Nexus 3.0 server?

Note: since I'm the only one searching for it it feels like I want to use bad practice. I want to create a deploy-user. Its only purpose is to be configured in the settings.xml as a server-entity: nexus
OddDev
  • 3,644
  • 5
  • 30
  • 53
16
votes
4 answers

Using Sonatype nexus in local network

I've successfully created a small software engineering environment (SEE) for Java applications that is - amongst other tools - based on maven and nexus. My actual problem is - not a real surprise - that nexus usually requires access to the internet…
Andreas Dolk
  • 113,398
  • 19
  • 180
  • 268
16
votes
6 answers

How to manage maven settings.xml on a shared jenkins server?

I have a Jenkins cluster that is shared by several teams, that I can configure build jobs on, However i can't easily make changes to the Jenkins configuration itself. There is a central "nexus pro" maven repository manager but each team / group in…
ams
  • 60,316
  • 68
  • 200
  • 288
15
votes
1 answer

mvn:install to place my jar in nexus remote repository

I am using maven in eclipse (m2 eclipse) When i execute mvn:install i want my jar(artifact) to be installed in the nexus repository which is located on the server(right now the installed jar is placed in the local system repository).. how can i do…
Praneel PIDIKITI
  • 18,677
  • 13
  • 41
  • 60
15
votes
1 answer

What is in the packed Maven index (nexus-maven-repository-index.gz)?

Where can I find some more details on what is contained in a Maven repository's Maven Index? Where can one find more details on how this all works? I am somewhat familiar with the maven-indexer, but I still have some grey spots... What is the…
carlspring
  • 31,231
  • 29
  • 115
  • 197
15
votes
4 answers

Avoiding maven repository version collision when using feature branches

Question: How do you handle feature branches for maven multi project builds? Jenkins builds and deploys these branches to keep build overhead on developers to a minimum but develop and feature branches cannot build the same maven version or we risk…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
15
votes
2 answers

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy default-deploy on project

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project. Failed to deploy artifacts: Could not transfer artifactReturn code is: 401, ReasonPhrase: Unauthorized. -> [Help 1] There was no…
Happy
  • 427
  • 2
  • 4
  • 17
15
votes
1 answer

It's possible to put binary files on nexus repository?

At my work all development uses Java technology, and we use Nexus to manage our Maven repositories. But for a new project, the build requires dll and exe artifacts. Is it possible to put those windows binary files into a Nexus repository? Is there…
PRF
  • 821
  • 1
  • 9
  • 16
15
votes
3 answers

Proxy repository VS hosted repository

According to Nexus book, hosted repository is "a repository that is hosted by Nexus." and the 3rd party repository (a hosted repository) should be used for third-party dependencies not available in the public Maven repositories. What's the…
user697911
  • 10,043
  • 25
  • 95
  • 169
15
votes
4 answers

Nexus: Could not find artifact

Recently I've migrated from Archiva to Sonatype Nexus. I'm trying to use Jars from 3rd party repositories and Nexus does not cache it into the local repository. I've searched for answers in this section and couldn't one that answers the…
raven99
  • 1,341
  • 4
  • 13
  • 28
14
votes
1 answer

Why the snapshot name always has date in its jar file name ? How to remove it

When I deploy jar, maven always add date in its file name, this make the file name repository different from the file in my local. How can I remove the date in file name ? Thanks
zjffdu
  • 25,496
  • 45
  • 109
  • 159
14
votes
2 answers

Download single/latest asset(JAR) from Nexus3

I am trying to download the latest/newest asset(JAR) from my local Nexus repo. I am using Nexus Swagger UI. It has a GET method to download, GET /beta/search/assets/download The issue is..I have many assets in the repo, and it gives an…
John Seen
  • 701
  • 4
  • 15
  • 31