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
54
votes
7 answers

How to specify local registry in yarn?

I have a local nexus server, I'd like yarn to look through it before going online, basically prefer-offline yarn install \ --prefer-offline \ --cache-folder C:\folder\yarn-cache \ --preferred-cache-folder C:\folder\yarn-cache \ …
Lynob
  • 5,059
  • 15
  • 64
  • 114
53
votes
4 answers

What are the gigantic *.CFS files all about in Eclipse workspace plugin folder?

I started to notice my WD drive getting full and ran a size:gigantic file search on it. It has turned up several files here: F:\SCOTT-SHARED-DESKTOP\My…
stanlick
  • 1,442
  • 3
  • 16
  • 29
52
votes
7 answers

Maven error: Not authorized, ReasonPhrase:Unauthorized

I checked out my code from the Nexus repository repository. I changed the password for my account and set it correctly inside my settings.xml file. While executing mvn install clean I get the error saying Not authorized, ReasonPhrase:Unauthorized…
Mahendra Liya
  • 12,912
  • 14
  • 88
  • 114
51
votes
7 answers

Using the Nexus rest API to get latest artifact version for given groupid/artifactId

I am trying to use the nexus REST api to get the latest version of a maven artifact. I am able to browse to the specific version I am looking for using…
chrisst
  • 1,696
  • 5
  • 19
  • 32
51
votes
4 answers

What is the minimal set of privileges required to deploy artifacts to Nexus 3?

I'm using Nexus Repository Manager 3.1.0-04, and I want to create a user to just have deployment permissions. What are the minimal set of privileges required for that? Right now I created a role nx-deploy with the following…
Jane Wayne
  • 8,205
  • 17
  • 75
  • 120
49
votes
6 answers

How to access a secured Nexus with sbt?

I'm trying to access a Nexus repository manager which requires some basic authentication. Everything works fine from Maven2 but when I try to configure things in SBT it can't find the artifacts. It is using a custom repository pattern (see this…
Bryan J Swift
  • 1,449
  • 2
  • 15
  • 17
45
votes
4 answers

How do I provide URL access to the latest snapshot of an artifact in Nexus 2.x?

I would like to provide a simple URL that will always return the latest version of a snapshot version of an artifact. By simple I mean that the URL doesn't change, or require the user to browse the directory and examine timestamps.
chad
  • 7,369
  • 6
  • 37
  • 56
45
votes
11 answers

Authentication error on publishing to private NPM repository on Nexus

I am having authentication problem when publishing to my private npm registry hosted on my private Nexus. My Nexus setup is I have npm-proxy, npm-registry (hosted npm with allowRepublish=false), npm-snapshots (hosted npm with allowRepublish=true)…
Miha Jamsek
  • 1,193
  • 2
  • 17
  • 33
45
votes
2 answers

Idea, sbt, unable to reparse warning

I've pushed my artifact to oss nexus repo, added it as dependency to another project. Idea keeps me warning: [warn] Unable to reparse com.github.kondaurovdev#jsonapi_2.11;0.1-SNAPSHOT from sonatype-snapshots, using Fri May 13 17:12:52 MSK 2016…
Alexander Kondaurov
  • 3,677
  • 5
  • 42
  • 64
45
votes
5 answers

Remove artifacts from Nexus repository

I deployed some artifacts and I copy-pasted wrong name of those artifacts. I remember that manual playing with repository content brings problems. What is the recommended way for dealing with these situations? EDITED: I thought there was no way of…
lisak
  • 21,611
  • 40
  • 152
  • 243
40
votes
2 answers

Tool for managing/hosting own p2 repositories?

Our company uses Maven. We use the Nexus repository manager in order to store our snapshots and releases. Currently, we are developing a product based on Eclipse. We use Tycho to do that. The problem is the following: In our Eclipse-based product…
Maksim Sorokin
  • 2,334
  • 3
  • 34
  • 61
40
votes
8 answers

Maven repository hosting for non-public artifacts?

Is there some hosting solution, be it paid or free, that offers explicit maven repository hosting for non-public artifacts, preferably with support? These are the alternatives I'm aware about: Hosting on your own public server with credentials For…
eis
  • 51,991
  • 13
  • 150
  • 199
37
votes
6 answers

Maven Settings for multiple repositories

I have the following in settings.xml paid-jars jars with license http://url:8081/nexus/content/repositories/paidjars/ !central
Rohit Sachan
  • 1,178
  • 1
  • 8
  • 16
37
votes
2 answers

Publish Snapshot vs Publish Release in Gradle With Continuous Integration

I'm just learning Gradle, coming from both an Ant+Ivy and Maven background and I'm trying to wrap my head around the proper way to publish a release version of my software using gradle. I also need to constantly integrate my projects without having…
dev
  • 2,949
  • 5
  • 37
  • 48
37
votes
3 answers

What's the purpose of an artifact repository?

Wherever you read about continuous delivery or continuous integration it's recommended to use an artifact repository to store the artifacts even though Jenkins already stores them for each build. So why is it recommended to use an artifact…
user1338413
  • 2,471
  • 8
  • 29
  • 36