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

Is it possible to use Nexus to proxy a private npmjs org?

I have a private npmjs.com org. For certain builds in certain environments, I cannot connect to it, but I can connect to a Nexus repository. I was wondering whether it is possible to set up an NPM proxy with NPM credentials for a private org.…
Dave Kerr
  • 5,117
  • 2
  • 29
  • 31
1
vote
2 answers

Unable to browse artifacts on Nexus Repository ManagerOSS 3.3.0-01

I have created a maven plugin, this is dependent on a series of JARS. i have uploaded these JARs and poms to the relevant location on the server under nexus-data/blobs/maven-thirdparty/{group-id}. when i run a task to "Rebuild Maven repository…
Wolver1ne
  • 125
  • 1
  • 11
1
vote
0 answers

how to consume/pull artifacts from Nexus Staging repository without closing it in maven build

Our Maven Build in CI is split into different steps each one run in a different Jenkins work-space and build server Example: Module A runs on Server1 , Module B runs on Server2, Module B depends on Module A artifacts, while working with Nexus…
1
vote
1 answer

nexus-staging-maven-plugin 401 Unauthorized

I am getting a 401 Unauthorized exception from deploying the maven. Here is the relevant section of the pom file. org.sonatype.plugins nexus-staging-maven-plugin
Dan Grahn
  • 9,044
  • 4
  • 37
  • 74
1
vote
1 answer

recommended place to store nexus data

I have installed nexus 3 on my server at /mydir/nex/local/lib/nexus. This lays down the normal structure. So I have my data directory pointed to the default -Dkaraf.data=../sonatype-work/nexus3. I have a mounted file system on /mydir/nex where the…
Chris Bolton
  • 2,162
  • 4
  • 36
  • 75
1
vote
1 answer

nexus OSS 3.3.0-01 keeps falling over

My team has been using nexus oss version 2 (currently on 2.14.2-01) for a very long time without any hick-ups and we like it. For another project we need support for Docker and decided to give nexus oss version 3.3.0-01 a go. Unfortunately, this…
Sam
  • 333
  • 3
  • 16
1
vote
1 answer

Nexus 3 configuration issue with public repository

In evaluating nexus 3 repository, i found the public repository is not created by default. Also, the uri content/groups/public has disappeared. How can I configured it?
Pok
  • 1,521
  • 1
  • 13
  • 20
1
vote
2 answers

nexus 3: get list of all uploaded files to raw repository

We are using nexus 3.0 i upload my files with curl to raw repository, like in documentation: https://books.sonatype.com/nexus-book/3.0/reference/raw.html#_uploading_files_to_hosted_raw_repositories i tried to query with: curl -u login:pw…
ya_dimon
  • 3,483
  • 3
  • 31
  • 42
1
vote
1 answer

chef || rescue block does not work in case of exception

I have the below snippet in my chef recipe. begin execute 'run_tests' do command comand_string_to_run_nUnint user "user" password passkey end ensure execute 'upload_report' do command uplaod …
zumblebox
  • 13
  • 5
1
vote
1 answer

Create Content Selector and Privileges via script for separating a docker registry into project owned namespaces

Do you know if there is any way to create content selectors and content selector privileges via script for Nexus Repository Manager OSS? Thanks in advance for every answer :-) My idea is to divide a hosted Docker Repository into separated…
TGippert
  • 11
  • 2
1
vote
1 answer

Error while trying upload Artifact to Nexus

What i try to upload is this jar: https://mvnrepository.com/artifact/org.apache.maven.plugin-tools/maven-plugin-annotations/3.4 with GAV Parameters taken from here (see screen…
tryingHard
  • 1,794
  • 4
  • 35
  • 74
1
vote
1 answer

Scoped NPM projects via proxy with Nexus 3.2

I've been setting up Nexus 3.2 and particularly the NPM repository at the moment. I have a proxy repository pointing toward registry.npmjs.org I have been successful at publishing to a hosted repository on the same instance as well as downloading…
Brian Topping
  • 3,235
  • 28
  • 33
1
vote
2 answers

How to use Nexus instead of maven for Grails app

I have a grails 2.5.3 app that uses Plugins and dependencies from maven. Now I'd like to use a Nexus server setup inside the company as a proxy for all the dependencies my app uses. However, I've never used Nexus before so I'm a bit confused as to…
Anthony
  • 33,838
  • 42
  • 169
  • 278
1
vote
0 answers

Getting full nexus archive name in Jenkins pipeline

I'm trying to set-up jenkins build pipeline. It should contains three steps: Build project Publish artifact to nexus Deploy artifact to host Step 2 should trigger step 3 with full nexus artifact name as a parameter. I don't know how to obtain that…
pmajcher
  • 537
  • 6
  • 14
1
vote
2 answers

Nexus 3 Rest api to check if component exist

Maybe I miss something but i can't find a way to upload a component(jar or dll) to the nexus 3 repository from the UI. So I am trying to build a tool for this job, to optimize the upload process I need a way to check if component exist in the nexus…
Ron Badur
  • 1,873
  • 2
  • 15
  • 34