Maven3 manually installing the local jar to the warehouse

Source: Internet
Author: User

Usage scenarios:

The jar packages used in the MAVEN project are not available for download in the central repository, but are also used in the project.

Workaround:

1. Upload the jar package to your private one, and then download the jar after connecting to the address in the project.

2. Manually install this jar package to the local warehouse


Of course this article is an introduction to Method 2: How to manually install the jar into the local repository, if you want to understand Method 1, you can look at my other blog: http://simplelife.blog.51cto.com/9954761/1726177


1, will get the jar package in the specified directory, I put it directly on the desktop, if placed in another directory, it is necessary to enter into the jar storage directory, and then open a command line window in the current directory, execute the command:

MVN install:install-file-dgroupid=com.simple.jzsms-dartifactid=jzsms201503-dversion=1.0.0-dpackaging=jar-dfile= Jzsms201503.jar

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/84/79/wKiom1eRs8rzheO6AAF_FYmU1hQ071.png "title=" 22222. PNG "alt=" Wkiom1ers8rzheo6aaf_fymu1hq071.png "/>





Maven3 manually installing the local jar to the warehouse

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.