A Brief Introduction to Maven

As a Java developer, Maven has become a must-know convention.

1. Introduction to Maven

Apache Maven is a software project management and synthesis tool. Based on the project object model (project object model - POM) concept. It provides developers with a complete life cycle framework.

For example, if you are going to make a dish of braised lion head, you need to go to the market to buy ingredients, go to the seasoning store to buy seasonings, in short, you have to go to many places to buy a lot of ingredients to go home to start. But now there is a super market, which launched a This is a raw material box specially made for braised lion head. It has all the raw materials you need, so you don't have to go to various places to buy these raw materials, you just need to go to this supermarket and use the raw material box directly. So maven is the same.

2. Maven installation and configuration

The best way to install and configure this step is to go directly to the official website to find the latest version to download and install, and there are also configurations on the official website.

Official website: https://maven.apache.org/index.html

https://maven.apache.org/install.html

For the Chinese version, please refer to: https://www.yiibai.com/maven/maven_environment_setup.html

It is recommended to configure according to the official website, I did not configure M2 according to Chinese, Maven_home can also

3. Maven Repository

local repository.

Used to store and manage resources downloaded from maven. The default location is in the C:users/.m2 folder

Central repository.

If the resource cannot be found from the local repository, it will go to the central repository to find it.

http://search.maven.org/

4. How to download resources from maven repository.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325024982&siteId=291194637