In our daily work, we often encounter conflicts in jars referenced by Maven. In this case, we need to find the conflicting packages and remove jars that are older or lack certain methods. This problem can be solved by using the Maven dependency tree of IDEA.
Steps:
1. Select Maven->Show Dependencies from the poM file of your IDEA project.
There are several small tools in the upper left corner. The more common one is 1 showing the conflicting items, 2 showing the path from root to the selected JAR package, and 3 showing the actual size. To select the conflicting items, click 1 and then click 3. The display will be clearer because there are many JAR packages and complex JAR dependencies, which will make the graph smaller. Later, if you need to see the reference path of the JAR, you can click on the jar package and then click 2 to display a single path from the package in the root path of the POM file to the selected package
Other tips:
You can search the jar package name directly by using CTRL/Command + F in the dependency tree.