问题
NetBeans had a really cool feature that would allow you to view all of a Maven project's dependencies as a graph. Well, I recently upgraded from 6.8 to 6.9, and while all the other Maven stuff works fine, the menu item for the dependency graph has vanished. I couldn't find any information on the NetBeans site. Does anybody know if this feature was removed? Or am I just missing some configuration option?
回答1:
According to Creating an Enterprise Application Using Maven (applies to NetBeans 6.9), the dependency graph is supposed to be available:
You can right-click in
pom.xml
and choose Show Dependency Graph to see a visual representation of the project dependencies. You can place your cursor over an artifact to display a tooltip with the artifact details.
(source: netbeans.org)
I can't confirm this as I'm not using NetBeans 6.9 right now but I doubt they removed this nice feature.
回答2:
For those using NetBeans 7.2, you now have to open the pom.xml, right click on its tab and select "Editors > Graph".
来源:https://stackoverflow.com/questions/3213689/maven-dependency-graph-missing-in-netbeans-6-9