title: How can I find unused dependencies in a Maven reactor build?
body: <p>I'm struggling with <code>mvn dependency:analyze</code>. I couldn't get the plugin to work with a reactor build. Instead of recursively building a list of used dependencies, I see unused dependencies per module which is pretty useless. Let's say I have two modules <code>A</code> and <code>B</code> where <code>B</code> depends on <code>A</code>. <code>A</code> depend on <code>commons-email</code>.</p>
  
  <p>The dependency plugin tells me that <code>commons-email</code> is an "unused declared dependency" of <code>B</code> which I don't understand: The dependency isn't mentioned in the POM of <code>B</code> and it's used in <code>A</code>, so the message is wrong, no matter how I look at it. Also, I don't get this message for <code>A</code>, so the plugin knows that <code>A</code> is using the dependency.</p>
  
  <p>On top of that, I get a ton of "used undeclared dependencies" - one warning for each transitive dependency.</p>
  
  <p>Is there a way to configure the dependency plugin to provide some useful information? If not, is there a replacement which can compute a "convex hull" of all the reachable imports?</p>