Introduction and use of maven

Introduction to maven

Maven is to manage jar packages, and then directly import them into idea to use these jar packages, without the need to copy the jar packages to the project.
So there is a problem, where is the jar package?
Download the class library to the local computer's hard disk, and bind the maven service in the idea, so that the idea will go to change the class library to find the jar package.
Class library
Insert picture description here


Insert picture description here
If there is no jar package to be used in the idea binding in the class library, it needs to be obtained from the remote warehouse or private library.
Write the address of the remote warehouse in the setting configuration file of the class library
Insert picture description here

If these configurations are not used, idea will automatically find it in the central warehouse. If you go to the central warehouse to find it, it is better to go to Alibaba, because Alibaba is domestic, and it achieves the same function of the central warehouse.
Set the search from the local warehouse in the idea:

Parameter function: All resources are searched from the local warehouse as much as possible, and only a small amount of data will go to the network for download
Insert picture description here
Insert picture description here

Purpose of the private server warehouse

Generally, companies have their own private service class libraries. If the company does not provide the network, it will obtain the class libraries from such libraries for development. You only need to set the private library address in the local class library to automatically obtain the jar package in the private library.

Guess you like

Origin blog.csdn.net/qq_45850872/article/details/110381877