title: Get the dependency tree of a maven project with a missing dependency
body: <p>First of all, let me start by saying <code>mvn dependency:tree</code> does not work in my scenario.
  I'm working on an already existing codebase which is giving a build failure. The issue was that the maven repos (including nexus) does not have a POM for a transitive dependency (org.apache.ws.security:wss4j:pom:1.5.2) in this project. </p>
  
  <p>I want to find where this dependency came from. It's probably a transitive dependency, because it isn't listed in the project's pom nor in parent poms. Invoking <code>mvn dependency:tree</code> does not work because it also fails with the same error I get when I use <code>mvn install</code> (Connection timeout). The error is given below.</p>
  
  <p>So, how can I identify which dependency tries to download this pom? I'd like a general answer to find the dependency tree rather than focusing on wss4j pom stated above.</p>
  
  <pre><code>[INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building Sample/XKMS 4.5.0-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  Downloading: http://ws.zones.apache.org/repository2/org/apache/ws/security/wss4j/1.5.2/wss4j-1.5.2.pom
  
  [WARNING] The POM for bouncycastle:bcprov-jdk13:jar:132 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 3:10.155s
  [INFO] Finished at: Wed Mar 14 10:35:20 IST 2012
  [INFO] Final Memory: 7M/490M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal on project wso2appserver-samples-xkms: Could not resolve dependencies 
  for project org.wso2.appserver:wso2appserver-samples-xkms:jar:4.5.0-SNAPSHOT: Failed to collect dependencies for [org.wso2.xkms:xkms:jar:2.2 (compile)]: Failed to read artifact descriptor for org.apache.ws.security:wss4j:jar:1.5.2: 
  Could not transfer artifact org.apache.ws.security:wss4j:pom:1.5.2 from/to ws-zones-repository (http://ws.zones.apache.org/repository2): Error transferring file: Connection timed out -&gt; [Help 1]
  </code></pre>