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