About importing jar packages to the local MAVEN repository

Source: Internet
Author: User

Today the boss sent me a project let me see, after importing eclipse appears

The jar was not in the Maven repository, so the boss sent me a copy.

At this point, how do I import this jar package into Maven repository?

So Baidu a bit!

CMD Open command line terminal, execute MVN install:install-file-dfile=jar package location-dgroupid= below groupid-dartifactid= artifactid-dversion= The following Version-dpackaging=jar

Explain:

The location of the jar package: the location of the jar package that you have downloaded back or that someone sent to you is stored in your computer!

The following groupld: The GROUPLD in the picture, the groupld! of Pom.xml in the project

The following artifactid: The Artifactid in the picture, the artifactid! of Pom.xml in the project

The following version: version in the image, which is the Pom.xml version! in the project

Reference Example:

About importing jar packages to the local MAVEN repository

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.