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

How to retrieve content in Nexus 3.0 with script API?

How can I retrieve the content of the requested artifact for Nexus 3 like /service/local/artifact/maven/content in Nexus 2 ? I didn't see any script API in Intellij IDEA. Which API can I use for that maven artifact operations like getting…
1
vote
1 answer

Gradle changing module from nexus snapshot repo not updated

I have a problem with a snapshot artifact not being uploaded. I'm using snapshot version. Atrifact is marked explicitly as changing: true and cacheChangingModulesFor is set to 0 seconds. When i run --refresh-dependecies the artifact is…
Tuan Pham
  • 1,171
  • 2
  • 15
  • 27
1
vote
0 answers

Programmatically move an artifact from one repo to another

I need to write a Java program that takes an artifact from a given Nexus repository, including the pom and all side artifacts (like sources, javadoc, whatever) and moves it to a different repository. I guess that Aether would be a good start, but I…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
1
vote
1 answer

npm returning 404 and 405 errors when connecting to Nexus 3

Background: I have a new installation of Nexus OSS 3 with which I have configured a repository to proxy to the official NPM repo. I have added users and added 'npm Bearer Token Realm' to my list of active realms. Repository status is "Online -…
CosmicChuck
  • 78
  • 1
  • 7
1
vote
1 answer

Maven versioning in a parallel development process

Maven versioning parallel development process I work on a project using SVN with the usual trunk and branches. I have nexus with two repositories with two different policies "Release" and "Snapshot". This project produces artifacts that are used…
carlitos081
  • 645
  • 2
  • 7
  • 19
1
vote
1 answer

PHP curl fetch as json not working

I have the following PHP script, which is suppose to go to a URL and fetch the JSON output from that page: function nexusCheck($nexusUrl, $toolName, $verboseBool, $httpCode, $connectTime, $totalTime) { global $date; $username = 'user'; …
Fadi
  • 1,329
  • 7
  • 22
  • 40
1
vote
1 answer

Maven SNAPSHOT are taken into account as RELEASE

I have Java projects compiled with maven. Each project has its own POM which looks like the following : group.id scripts 1.0.1-SNAPSHOT ... …
Johny E
  • 25
  • 2
  • 6
1
vote
1 answer

Fix Nexus metadata download timeout

I have setup a Nexus (version 2.11.2-06) with a Public group containing several repositories (hosted and proxies). It contains a proxy for the Central repository. Currently Maven builds have problems while downloading the maven-metadata.xml for…
schoenk
  • 824
  • 3
  • 13
  • 31
1
vote
1 answer

Using gradle to download apk from repository

I'm setting up a CI build system for an android project and am having trouble using gradle to download the artifacts from the build. In the first step I use gradle to build an .apk and then I push it to a Nexus repository as an artifact. This works…
neonDion
  • 2,278
  • 2
  • 20
  • 39
1
vote
2 answers

Why can't maven find an artifact located in a hosted repository?

We've a nexus-server which has the common maven-public repository-group containing every external proxy-repository (e.g. maven-central). Besides that we have a local hosted repository. Let's call it MyProjectRepository. It's splitted in a…
OddDev
  • 3,644
  • 5
  • 30
  • 53
1
vote
0 answers

gradle fails to resolve dependency via nexus proxy repository

I'm new to nexus (and maven for that matter). I'm in the process of migrating an existing nexus config to a new server and am having a little issue. It is serving local artifacts fine, When gradle tries to resolve this particular dependency it fails…
Swaddo
  • 91
  • 1
  • 9
1
vote
3 answers

Jenkins upload artifact to nexus plugin not working with Nexus 3

I have a Jenkins project that does a gradle build and uploads build artifacts to a Nexus maven hosted repository using the Jenkins upload artifact to nexus plugin. This was working fine when I was using Nexus 2.13 - but after upgrading to Nexus 3,…
user619804
  • 2,286
  • 12
  • 46
  • 71
1
vote
1 answer

Gradle finds POM for dependency but not JAR

We are hosting a local maven repository in Sonatype Nexus, in order to share our own jars across projects. We are having an issue with one jar in particular, where Gradle is able to find and download the POM, but not the JAR from Nexus. The error…
Nick
  • 645
  • 7
  • 22
1
vote
1 answer

Nexus - find out against which artifacts and artifact was built

For an artifact in Nexus, I want to find out the classpath, i.e. against which version of which artifact the artifact was built. Of course, parsing the pom gives some hints, but as we have parent POMs, dependency management etc., this is a difficult…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
1
vote
0 answers

NuGet restore unable to connect & find version of package

When trying NuGet restore sometimes we get this Warning Message followed by Unable to find version, cmd>NuGet restore My.sln -NoCache WARNING: Unable to connect to the remote server WARNING: Unable to connect to the remote server Unable to find…
Vijay
  • 384
  • 4
  • 16
1 2 3
99
100