Two ways to install third-party jar packages

Source: Internet
Author: User
Tags maven central

How do I install a part of the third-place jar package that is not placed in the MAVEN central repository and the project relies on these jar packages? I have practiced two kinds of, special record.

First, install to the Nexus Private library:

In the 3rd party warehouse there is a Artifact Upload option, select the jar package that has been downloaded to this machine, then click the Add artiface button, then you need to set the relevant property values above, and then click Upload Artifact (s) to wait for the upload to complete. Legend:

Second, install to the local MAVEN warehouse:

command line to open the folder where the jar file is located, note the settings groupid\artifactid\version\packging\file these properties, such as this:

Install:install-file -dgroupid=google.code-dartifactid=kaptcha-dversion=2.3 . 2 -dpackaging=jar-dfile=kaptcha-2.3. 2. jar

And this one:

Install:install-file -dgroupid=org.csource-dartifactid=fastdfs_client-dversion=  1.24 -dpackaging=jar-dfile=fastdfs_client-1.24. jar

Two ways to install third-party jar packages

Related Article

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.