How to introduce Private Warehouse jar package into maven Project
This article introduces the knowledge of "how to introduce private warehouse jar package into maven project". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
When we download jar packages from a private repository, we need to first understand the order in which packages are introduced into our project:
Local warehouse > private warehouse > shared warehouse
1. First find the jar package file from the local warehouse, and if it exists, use the jar package from the local warehouse.
2. If it does not exist, obtain the jar package from the private repository
3. If the jar package is not found in the private warehouse, the jar package will be found from the central warehouse, and a copy will be stored in the private warehouse, which will be obtained directly from the private warehouse next time.
You mainly need to modify the setting.xml configuration file under apache maven as follows:
Maven-releases admin Tanda123_* nexus3 nexus3 http://192.168.32.90:8081/repository/maven-public/ * nexus3 Maven-public http://192.168.32.90:8081/repository/maven-public/ true true maven-public http://192.168.32.90:8081/repository/maven-public/ true true Jdk-1.8 true 1.8 1.8 1.8 nexus3 jdk-1.8
If you want to learn how to install private libraries, you can refer to
Https://www.cnblogs.com/wuwei928/p/10338307.html (reprinted)
This is the end of the introduction of "how to introduce the private warehouse jar package into the maven project". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!