Idea Maven build local repository-Import local jar Package

Source: Internet
Author: User

Demand

Idea is easy to integrate with Maven, but there are also problems, such as when using a Maven silo without a package, and we need to build our own local repository to implement

Realize

Find the installation directory of idea under Maven, my

C:\Program Files (x86) \jetbrains\intellij idea 2016.3\plugins\maven\lib\maven3

Open Settings.xml in the Conf directory

Found it

  

  <!--localrepository   | The path to the local repository maven would use to store artifacts.   Default: ${user.home}/.m2/repository  <localRepository>/path/to/local/repo</localRepository> -  

Revision changed to

< localrepository > D:/work/maven-dependcies</localrepository>

The local warehouse is completed, and we need to add our own jar,

        <Dependency>            <groupId>Taobao-sdk</groupId>            <Artifactid>Taobao-sdk-java-auto</Artifactid>            <version>1.0</version>        </Dependency>

You need to create a new Taobao-sdk/taobao-sdk-java-auto/1.0/taobao-sdk-java-auto-1.0.jar under the Local warehouse directory (d:/work/maven-dependcies)

By the end of the building, the project will work.

Idea Maven build local repository-Import local jar Package

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.