title: How to list the transitive dependencies of an artifact from a repository?
body: <p>I was wondering: is there a way using the <a href="http://maven.apache.org/plugins/maven-dependency-plugin/" rel="noreferrer">Maven Dependency plug-in</a> (or something else <em>on the command-line</em>), to list the transitive dependencies of an artifact <em>from a repository</em> (ie <strong>not</strong> in my <code>pom.xml</code>)?</p>
  
  <p>I know can use <code>mvn dependency:tree</code> to list the dependencies of my local project, but I want to know the dependencies of something <em>before</em> I add it to my project (ie making an informed decision), and add dependencies to a local <code>pom.xml</code> for the sole purpose of the dependency plug-in seems hackish.</p>
  
  <p>I was <em>hoping</em> I could just run something like:</p>
  
  <pre><code>mvn dependency:tree "-DgroupId=net.jawr" "-DartifactId=jawr-core" "-Dversion=3.5"
  </code></pre>
  
  <p>The best I've come up with is:</p>
  
  <ol>
  <li>delete my local repository (ie <code>~/.m2/repository</code>) </li>
  <li>run <code>mvn dependency:get "-DgroupId=net.jawr" "-DartifactId=jawr-core" "-Dversion=3.5"</code> </li>
  <li>examine the output</li>
  </ol>
  
  <p>but that seems <em>very</em> hackish and wasteful.</p>
  
  <p>PS - I don't care if it's in tree format or not.</p>