Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding third party libraries to Sonatype Nexus repository OSS

Tags:

Procedure for adding third party libraries to Sonatype Nexus central repository.

like image 869
Vivaswan Avatar asked Apr 25 '16 09:04

Vivaswan


People also ask

How do I add a library to my Nexus?

Choose the File » Open command, browse to the integrated library in the Choose Document to Open dialog then click Open. Drag and drop the IntLib file from Windows File Explorer onto the Altium NEXUS window.

How do I add artifacts to Sonatype nexus?

To upload a pom file and its associated artifacts add all the files into the upload screen at the same time. Be sure to specify the extension of the pom file as pom ; this will let Nexus Repository know it should be taking the coordinates from the pom file, not the UI.

What is Nexus repository manager OSS?

Nexus Repository Manager OSS is a free-to-use artifact repository. It supports various formats, such as Maven, APT, and Go. You can find the complete list of supported formats here. Nexus Repository Manager helps you host your own repositories, but you can also use the Nexus proxy for public repositories.

What are the different types of repository that we can create using Sonatype Nexus?

Nexus Repository Manager provides for three different kinds of repositories: Proxy repositories, Hosted repositories and Virtual repositories.


2 Answers

This is already explained in Nexus documentation : http://blog.sonatype.com/2008/11/adding-a-jar-to-a-maven-repository-with-sonatype-nexus/

like image 110
Ruudy Garcia Avatar answered Sep 28 '22 02:09

Ruudy Garcia


On Version nexus 3.13.0-01 through the web interface logged on as the admin, do the following:

You have to set up a repository:

Click on Capabilities
Click on Repositories
Click on "Create Repositories"
Click on "maven2 (hosted)"
Update the name to be "thirdparty"
Click "Create Repository"

Then upload your assets:

Click on Browse
Click on "thirdparty"
Click on Upload Component

Or do it via the command line, something like:

curl -v --user admin:admin123 --upload-file ./foo.bar http://localhost:8080/repository/thirdparty/somedirectory/casefile/123/foo.bar
like image 40
ergonaut Avatar answered Sep 28 '22 04:09

ergonaut