How do I add a third-party jar after using the Sonatype Nexus to build a maven?

Source: Internet
Author: User
Tags maven central sonatype sonatype nexus

After signing in to the Nexus, click on the "repositories" on the right to display the repository currently managed by the Nexus.


By default, Nexus creates the following major repository for us:

1, Publicrepositories, this is a repository group, the repository group contains a number of repository, which contains releases, snapshots, ThirdParty and Central.

2, 3rd party, the repository is to store your company's purchase of the third software Library, it is a nexus itself maintained by a repository.

3, Apache snapshots, look at the name you should know this is what kind of repository, this is a proxy repository, that is, ultimately rely on the Apache website to download, and then cached in the Nexus.

4, Central, this is the agent Maven central repository repository.

5, releases, your own project to release, it should be published in this repository, he is also the nexus of their own maintenance repository, not agents.

6, snapshots, your own project snapshot repository.

Here's how to upload a third party jar package using 3rd parties

In the Repository list, select the 3rd party, check artifact upload, as shown in


Choose GAV defini3ion:gav parameters,auto Guess Hook.

Select the jar format for group, Artifact, version,packaging for the jar package below.

Click the Select Artifact (s) to upload button and select the Jar package to upload.



How to use the uploaded jar package, very simple, if you have built a MAVEN project. Contains pom.xml this file, add the following to this file:




How do I add a third-party jar after using the Sonatype Nexus to build a maven?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.