IntelliJ IDEA 2016.1 Help

Working with Maven Dependencies

IntelliJ IDEA makes it possible to view Maven dependencies as a UML class diagram. In this diagram, you can discern:

  • Your own modules (blue )
  • Test dependencies (green)
  • Conflicting or unsatisfied dependencies (red)

In the Maven Dependencies diagram, you can:

  • Navigate from a node to the corresponding source code.
  • Mark dependencies as excluded.
  • Filter out the nodes on diagram, when the diagram is too large.

To view dependencies in a UML class diagram

  • Do one of the following:
    • In the Maven Projects tool window, right-click the desired pom.xml file, and choose Show Dependencies, or Show Dependencies Popup.
    • Right-click pom.xml in the editor, and choose Dependencies | Show Dependencies /Show Dependencies popup.
    • Press Ctrl+Shift+Alt+U or Ctrl+Alt+U.

To navigate from a node in the diagram to its source code

  • Select the desired node, and press F4, or choose Jump to Source on its context menu. The corresponding file opens in the editor.

To exclude a dependency

  1. Select a dependency in diagram.
  2. On the context menu, choose Exclude.
  3. From the drop-down list, select the module where exclusion definition will be added. The selected dependencies will be removed from diagram, and exclusion section will be added to the corresponding dependency.

To filter out the elements that are of now interest

  1. On the diagram toolbar, click filterVisibilityLevel.png.
  2. From the drop-down list, select the desired scope.

See Also

Last modified: 13 July 2016