技术交流群: 233513714
使用Intellij idea,想看看它的maven依赖图,根据eclipse的经验,不是很容易能找到Intellij idea对应的功能。在打开的pom.xml文件上右键Diagrams--Show Dependencies,就可以看到了。对于pom.xml配置的依赖,idea默认不是立即更新的,需要运行Maven--Reimport才能生效。不过可以根据提示将Reimport操作设置为自动的。
Intellij idea图显示是这样的

默认情况没有这样排列,需要使用“Apply Current Layout(F5)”功能,然后使用 1:1 的比例查看才能很清晰的看到依赖关系。而eclipse(Myeclipse才有)下的工具显示是这个样子

很混乱,也没有找到更好的排列方式,有个Radial Layout也好不到哪去。如果有jar包冲突,idea会用红色标明


按名字搜索jar包的功能,eclipse的插件更直观些。