Questions tagged [nexus3]

Nexus is a Repository Manager for Maven, NuGet, Docker registries 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.

Since version 3.x, Nexus Repository Manager and Nexus Repository Manager OSS support Docker registries as the Docker repository format for hosted and proxy repositories. These repositories can be exposed to the client-side tools directly or as a repository group. This reduces time and bandwidth usage for accessing Docker images in a registry as well as provides a platform to share images in a hosted repository.

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.

540 questions
1
vote
1 answer

Cannot download ojdbc specific jar from nexus using gradle

Currently I am learning Nexus and gradle integration and stuck with one issue. One file OJDBC14.jar is has already been uploaded on nexus earlier. So when we mentioned that jar in build.gradle dependency, it downloads from…
1
vote
0 answers

How to map the Groovy script to Nexus script API and pass the Argument in JSON

I have a script which will add the nexus role to the LDAP user. import org.sonatype.nexus.security.role.RoleIdentifier; import org.sonatype.nexus.security.user.User; import org.sonatype.nexus.security.user.UserManager; String userId =…
user2439278
  • 1,222
  • 7
  • 41
  • 75
1
vote
1 answer

Yum repo caching

I would like to verify that an rpm is available from Nexus 3 after it is uploaded. When an rpm is uploaded to Nexus 3, the following events happen (looking at the logs): Scheduling rebuild of yum metadata to start in 60 seconds Rebuilding yum…
1
vote
1 answer

Unable to start Nexus repository on CentOS 7 running on AWS

Our Nexus repository ran out of space and now we cannot start the repository. Unfortunately, we do not have a backup of the repository that we can revert back to. After we made some space on the disk 3.4. GB is free. Now we are trying to fix the…
Roy
  • 11
  • 6
1
vote
1 answer

Error 405 PUT | How to publish to nexus through sbt?

I'm testing the locally deployed Nexus using a Demo Project. I've created this repo: com.example on Nexus using create Repository. The URL of the repository on local Nexus is: http://localhost:8081/repository/com.example/. The configuration in…
Yashpal
  • 95
  • 4
  • 13
1
vote
3 answers

Nexus Repository 3 (NXRM3): Delete snapshot task not removing timestamped artifacts

I've recently set up NXRM3.13.0-01 and have been building an artifact snapshot to the maven-snapshots repository. The integration with my local maven build seems ok. It reads from Nexus, deploys the latest timestamped artifact when built and gets…
Dec Clarke
  • 53
  • 2
  • 8
1
vote
1 answer

Docker container to use same Nexus volume?

I run the following: mkdir /some/dir/nexus-data && chown -R 200 /some/dir/nexus-data chown -R 200 /Users/user.name/dockerVolume/nexus docker run -d -p 8081:8081 --name nexus -v /some/dir/nexus-data:/nexus-data sonatype/nexus3 Now lets say I upload…
K Split X
  • 3,405
  • 7
  • 24
  • 49
1
vote
1 answer

What are the minimal set of privileges required to use the rest Search API with Nexus 3?

I'm using Nexus Repository Manager OSS 3.13-0.0.1 and I'm trying to find the minimal privileges to use the Search API. In the documentation the admin account is used : Search API Documentation I've tried the nx-search-read privilege but is always…
1
vote
1 answer

nexus 3 with proxy npm repository

I use nexus 3 (affected all versions from 3.2 to 3.13.0_01) with proxy npm repository. Sometimes when I build my Angular project I get error like that: [ERROR] npm ERR! node v6.11.2 [ERROR] npm ERR! npm v3.10.10 [ERROR] npm ERR! code…
burtsevyg
  • 3,851
  • 2
  • 29
  • 44
1
vote
1 answer

Upload artifacts to Nexus through UI

I'm trying to create a pom bundle in Nexus3, but I get an error that the assets duplicate each other: WARNING The assets 1 and 2 have identical coordinates, The assets 2 and 3 have identical coordinates, The assets 3 and 4 have identical…
John Manko
  • 1,828
  • 27
  • 51
1
vote
1 answer

Snapshots for npm-packages in nexus

Is there a feature that supports SNAPSHOT releases for npm-packages in nexus 3? My npm package is in package.json like this: "myPackage": "1.0.0.SNAPSHOT" Currently I have re-deploy enabled and I'm overriding my SNAPSHOT. But I don't think this is…
ochs.tobi
  • 3,214
  • 7
  • 31
  • 52
1
vote
0 answers

OrientDB corruption in Nexus Repository version 3.1

We are using Nexus Repository 3.1.0 (official docker image) and orientdb seems to be corrupted. Nexus is no longer starting, and started getting the following errors in nexus.log : com.orientechnologies.orient.core.exception.OSchemaException:…
1
vote
1 answer

Integrate maven with nexus repository

I have installed nexus repository 3.12 in a server machine and apache-maven 3.3.9 in my local computer. I want to configure maven to access repository. I created a repository in nexus as maven_ub and edit the settings.xml file as below. File path : …
Shalika
  • 1,457
  • 2
  • 19
  • 38
1
vote
0 answers

Nexus OSS not starting after adding the R repository plug-in (me too)

Nexus OSS 3.10.0-04 running on RHEL 6. I am referring to the 'permanent install' section of the R plug-in. After compiling the plugin I copied it in /system/org/sonatype/nexus/plugins/nexus-repository-r/1.0.1/nexus-repository-r-1.0.1.jar I added…
1
vote
0 answers

Component's description in Nexus Repository

I have Nexus Repository Manager OSS 3.9.0-01 with some local hosted repositories. There are a lot of different private components and I want to add some description for each of them. For example: full name, what problem does this component solve,…