Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to introduce Private Warehouse jar package into maven Project

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report