How can you display the Maven dependency tree for the *plugins* in your project?

前端 未结 2 1022
一个人的身影
一个人的身影 2020-12-07 16:12

A common Maven debugging technique is to use mvn dependency:tree to view the graph of project dependencies.

However, this list shows the project dependencies, not

2条回答
  •  我在风中等你
    2020-12-07 16:56

    If you are using any IDE like IDEA IntelliJ or Eclipse:

    • You can add this below plugin in your pom.xml
    • Once done, On the Maven window (on the right of IDE), you will find a new plugin called as Dependencies
    • Expand that and you will see the dependency:tree goal, double click on it and run it, you should see the full dependency tree

    Plugin to be added in POM:

    
        
            
                maven-dependency-plugin
                
                    1.8
                    1.8
                
            
        
    
    

提交回复
热议问题