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

NGINX location directives for the same location

I have a Nexus Repository Manager OSS 3.0 running behind NGINX as a private docker registry. My Docker client (not the official docker client) is expecting a 200 OK and an empty JSON string {} to be returned from /v2/. The problem i'm running into…
Patrick Crocker
  • 193
  • 2
  • 6
1
vote
1 answer

How Do I Proxy Internal Nexus Docker Repositories?

We have deployed Sonatype Nexus 3 to be used as our internal artifact repository, and it works GREAT... Now that we have completed our proof-of-concept in our staging environment, we have deployed 2 additional Nexus servers in some of our remote…
Deven Phillips
  • 1,129
  • 14
  • 39
1
vote
1 answer

How to test the https connection of a Nexus Repository Management server

I've just setup a Nexus server. I know that my http connection works since I get the "Welcome" page which gets loaded via http. However, I don't see any components when I browse the repositories (the default repos like "Maven Central" are…
OddDev
  • 3,644
  • 5
  • 30
  • 53
1
vote
1 answer

Nexus fails starting: Unable to set localhost

I am trying to install and run Nexus on MacOS via homebrew. The installation went fine so far. Version 2.13 was installed. The following error occurs when I start via nexus console: ERROR [jetty-main-1] *SYSTEM net.sf.ehcache.Cache - Unable to set…
JJD
  • 50,076
  • 60
  • 203
  • 339
1
vote
1 answer

How to upload to Nexus using Maven in python

I want to upload an artifact to Nexus using maven in a python script. I looked it up here: https://gist.github.com/adamv/705292 and am doing the following way: def local2(command, print_command=False): from subprocess import Popen, PIPE p =…
Arshad
  • 51
  • 6
1
vote
1 answer

Sonatype Nexus: synchronous REST calls

I am using Nexus as the repository for my project and I use Jenkins as my CI orchestrator. At the end of my Jenkins jobs I call the Nexus REST API to rebuild the Maven metadata so the information about the latest version of every component can be…
MisterStrickland
  • 947
  • 1
  • 15
  • 35
1
vote
1 answer

jQAssistant - reduce memory consumption

We have a Nexus repository with some thousand artifacts - jars, war and ears. I tried to scan this repository with jQAssistant (using scan -u maven:repository:...), but even 4GB of heap memory for Java 1.7 were not enough, an out of memory error…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
1
vote
1 answer

Nexus Artifact Usage Plugin does not start

I tried to install the Nexus Artifact Usage Plugin into my Nexus 2.12.1-01: I copied it to the plugin-repository folder and restarted Nexus, but all I got was: Unfortunately, this error message does not help very much. Is this plugin…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
1
vote
1 answer

register bower packages in nexus oss

I have configured bower and nexus using this tut: https://books.sonatype.com/nexus-book/3.0/reference/bower.html I have bowerrc.json like below: { "registry" : { "search" : [ "http://localhost:8081/repository/bower-all/" ], "register" :…
Hadi Rasouli
  • 1,871
  • 3
  • 27
  • 43
1
vote
1 answer

Nexus OSS 3 - npm install requires npm login

We've started using Nexus OSS 3 as a standalone NPM server and so far it's working great but there's one thing that makes little sense to me, and that is the requirement to do the npm login before being able to npm install self published…
Mario
  • 128
  • 7
1
vote
1 answer

How to deploy a 3rd party set of libs to Nexus

I want to deploy a 3rd party set of libraries to nexus after building them from the source using maven. I thought I'd be able to simply use mvn deploy but I get the following message: [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @…
ksl
  • 4,519
  • 11
  • 65
  • 106
1
vote
0 answers

ImagePullBackOff: Kubernetes error with Nexus based Private Registry

I had initially thought this was the same as: Kubernetes imagePullSecrets not working; getting "image not found" However, even disabling authentication (to avoid the need for secrets) still produces the same error. So, Kubernetes trying to pull…
Sion
  • 395
  • 4
  • 15
1
vote
2 answers

Jenkins Deploy Artifacts to Nexus using Deploy to Maven Repository

We have a scenario to deploy the artifact generated from maven build to Nexus. The Jenkins job would run goals clean package. The artifact should go to SNAPSHOT repo if the pom.xml has a SNAPSHOT version. If the pom.xml has a release version, the…
Upen
  • 1,388
  • 1
  • 22
  • 49
1
vote
2 answers

Using Nexus, bower still try to connect git server

I try to use Nexus Repository Manager 3 for a complete offline build of a classical web project. I successfully configured and used Nexus for maven repositories, and for npm too. I still have an issue with bower: it tries to connect to git server…
1
vote
1 answer

Nexus and Maven build

I've installed and configured Nexus3. It's behind a proxy and the HTTP section was configured. [UPDATED AFTER FIRST COMMENTS] On my settings.xml
Riccardo79
  • 954
  • 4
  • 17
  • 35
1 2 3
99
100