(3) Maven--advanced features

1. Maven's dependency transfer

1.1 What is dependency transfer

For example:

1.2 What is a dependency conflict

For example: multiple jar packages are imported, and they pass a certain dependency at the same time, causing conflicts

1.3 How to resolve dependency conflicts

1) Use the dependency mediation principle provided by maven

①The first declarant takes precedence

②Principle of shortest path first

2) Exclude dependencies

Use the <exclusion> tag to exclude dependencies

3) Version locking

2. Build maven project by module

2.1 Analysis

2.2 Inheritance of maven project

2.3 Aggregation of maven projects

//TO-DO

More in-depth content to be added. . .

Guess you like

Origin blog.csdn.net/lu_xin5056/article/details/128972253