title: Detecting cyclic dependencies with Maven
body: <p>In my application I'm using an external library (Batik 1.7) that is made up of several modules. The modules have multiple cyclic dependencies between themselves. This doesn't influence the build, but some tools (e.g. the M2Eclipse Dependency Graph, or the Dependencies report) will not work anymore.</p>
  
  <p>Is there a good way to diagnose what cycles are there, and an easy way to get rid of them?</p>
  
  <p><strong>Update:</strong> The problem is with the POMs, as e.g. <a href="http://repo1.maven.org/maven2/org/apache/xmlgraphics/batik-bridge/1.7/batik-bridge-1.7.pom" rel="noreferrer"><code>batik-bridge</code></a> is dependent on <a href="http://repo1.maven.org/maven2/org/apache/xmlgraphics/batik-gvt/1.7/batik-gvt-1.7.pom" rel="noreferrer"><code>batik-gvt</code></a>, which is in turn depend upon <code>batik-bridge</code>.</p>
  
  <p>I think I can solve this by excluding some of the dependencies manually, but I'm not sure what to exclude. What I'd like to have is a clear overview of the cycles in the graph.</p>