IDEA查看maven依赖关系的方法
生活随笔
收集整理的這篇文章主要介紹了
IDEA查看maven依赖关系的方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在terminal窗口下,進到相應的工程目錄,執行命令:mvn dependency:tree
就能看到jar包的依賴關系:
[INFO] com.edaily:edaily-api:jar:1.0-SNAPSHOT [INFO] +- org.springframework:spring-webmvc:jar:4.1.1.RELEASE:compile [INFO] | +- org.springframework:spring-beans:jar:4.1.1.RELEASE:compile [INFO] | +- org.springframework:spring-context:jar:4.1.1.RELEASE:compile [INFO] | +- org.springframework:spring-core:jar:4.1.1.RELEASE:compile [INFO] | | \- commons-logging:commons-logging:jar:1.1.3:compile [INFO] | \- org.springframework:spring-expression:jar:4.1.1.RELEASE:compile [INFO] +- org.springframework:spring-web:jar:4.1.1.RELEASE:compile [INFO] | \- org.springframework:spring-aop:jar:4.1.1.RELEASE:compile [INFO] | \- aopalliance:aopalliance:jar:1.0:compile [INFO] \- org.springframework:spring-test:jar:4.1.1.RELEASE:compile2、選中工程,點擊show dependencies
就可以看到可視化視圖,比較清楚,但當依賴很多的時候就看不清楚了。
3、安裝Dependency Analyzer插件,安裝完之后再Pom.xml中能看到如下頁面,可以查看依賴的沖突Conflicts,以及依賴樹狀結構等。
總結
以上是生活随笔為你收集整理的IDEA查看maven依赖关系的方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: UIFont-动态字体
- 下一篇: python 英语分词_NLTK(一):