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
0 answers

SBT Publish Fails - Sonatype Nexus .3.2.1-01 OSS

After upgrade from 2.14.3 to 3.2.1-01 in nexus OSS, sbt universal:publish started failing. It fails with error java.io.IOException: Error writing to server. Nexus log does not give any information. This is a blocker for us. Any help much…
1
vote
0 answers

How to tell if an artifact is in Nexus 3 without using Maven

I need a way to use HTTPBuilder in Groovy/Java with a url to tell if an artifact is in a Nexus 3 repository or not. Maven is not available.

This maven2 hosted repository is not directly browsable at this URL.

Sample code might be String url…
Dave Brunkow
  • 352
  • 6
  • 20
1
vote
1 answer

Using Nexus 3 how can I upload a multi-line script?

The manual gives this example { "name": "maven", "type": "groovy", "content": "repository.createMavenHosted('private')" } But if the content is multiple lines of code then this fails. How do I reformat something more complex for uploading?
Andrew Ducker
  • 5,308
  • 9
  • 37
  • 48
1
vote
1 answer

Nexus Repository Mangaer saves only assets but no components

I've installed Nexus Repository Manager local on my machine. I want to use it with npm and I have followed all instructions given by the official documentation. However in the terminal I can see that npm is first looking at my proxy repo adress for…
1
vote
2 answers

nexus3 api how to search component from groupId and artifactId

I search a way to request components or assets from groupId and artefactId. Documentation provides any help about how to create this request. This doc has been a great help. Unfortunately, it's not enough to resolve my need and I try to create query…
olivier
  • 11
  • 2
1
vote
1 answer

SonaType Nexus NuGet proxy 404 when forwarding to another Nexus

We have 2 Nexus SSO servers with NuGet proxy repositories. One is in our private network environment (v3.0.0), the other is within the DMZ (v3.0.1) with internet access. A request first gets sent to the private Nexus server that forwards the request…
Mephix
  • 23
  • 6
1
vote
1 answer

Where in the Nexus docs is it documented that "LATEST" redirects to the latest version?

So it seems that giving Nexus a version of "LATEST" will tell it to redirect to latest version of the specified build product. Where in the docs is this actually documented?
Adam Vandenberg
  • 19,991
  • 9
  • 54
  • 56
1
vote
0 answers

Determining the existence of a new SNAPSHOT version of dependencies in Nexus?

Is there a way to determine that a new SNAPSHOT version of a dependency is available in a Nexus? Ideally it would be a command line that would take as input a group/artifact/version and would return true if it is the case. Say I have…
cooltea
  • 1,113
  • 7
  • 16
1
vote
1 answer

Unable to deploy jar from a Spring Boot application to Nexus/Artifactory

Deploying to my local artifactory/nexus with maven works fine for sample Spring Boot applications (generated on start.spring.io): mvn clean package deploy However as soon as I add a dependency from org.springframweork.cloud to my pom: …
user3681304
  • 629
  • 6
  • 23
1
vote
1 answer

SBT - invalid system property 'sbt.repository.config'

I am trying to build SBT project where I am pulling dependencies from internal repository. I followed this post to set repo.properties & stbconfig.txt. Here is the content of these files- stbconfix.txt - repo.properties- After all above steps,…
nil
  • 563
  • 5
  • 8
1
vote
1 answer

Docker images proxy server (private docker registry) using Nexus OSS and reusing its dependency images

Nexus Repository Manager OSS can be used as caching proxy for jar artifacts, and as new feature for docker images. I'd like to set up it for company usage within LAN. And want to use docker to install it (I could find docker image for nexus…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
1
vote
0 answers

SBT Unresolved Dependency Error - Elasticsearch Test Framework in a Scala Project

I am doing a Scala project, built with SBT and trying to follow the documentation in: Elasticsearch website, about their test framework: https://www.elastic.co/guide/en/elasticsearch/reference/current/using-elasticsearch-test-classes.html There,…
Filipe Miranda
  • 914
  • 1
  • 20
  • 33
1
vote
1 answer

How to upload artifacts from Maven into Nexus repository?

I am using Sonatype Nexus version 3.1.0-04. I have a build that is failing due to some missing artifacts in my Nexus repository. …
jstanley
  • 2,087
  • 15
  • 22
1
vote
1 answer

node_modules location in development stage

Recently I started with Angular 2 app development and I came across some problem. I have multiple projects that use certain node modules and I installed those modules with npm install in project folder. But then I started thinking: If I have a lot…
peterremec
  • 488
  • 1
  • 15
  • 46
1
vote
1 answer

Overwrite public snapshot artifact available via proxy repository

I frequently have the problem, that I need customized snapshot releases of some open source artifacts contained in the Apache Snapshot or Sonatype Snapshot repositories. A nice way would be to deploy those customized artifact in my private Nexus…
Herr-Herner
  • 491
  • 6
  • 22