<p>I would like to know which dependency described in my pom.xml brings a transitive dependency in my target directory.</p>

<p>To be more precise, I have the library "poi-2.5.1-final-20040804.jar" in my WEB-INF/lib directory and I would like to know which dependency in my pom.xml brings that.</p>

[{'answer_id': 34156, 'author': 'David Crow', 'author_id': 2783, 'author_profile': 'https://Stackoverflow.com/users/2783', 'pm_score': 6, 'selected': False, 'text': '<p>Using the <a href="http://maven.apache.org/plugins/maven-dependency-plugin/" rel="noreferrer">Maven Dependency Plugin</a>:</p>\n\n<pre><code>mvn dependency:tree\n</code></pre>\n'}, {'answer_id': 34162, 'author': 'Valters Vingolds', 'author_id': 885, 'author_profile': 'https://Stackoverflow.com/users/885', 'pm_score': 2, 'selected': False, 'text': '<p>If you run maven with "-x" switch, it will print out plenty of diagnostics, I guess the relevant dependency path can be picked up from there.</p>\n'}, {'answer_id': 34167, 'author': 'A. Rex', 'author_id': 3508, 'author_profile': 'https://Stackoverflow.com/users/3508', 'pm_score': 8, 'selected': True, 'text': '<p>To add to @David Crow, here\'s <a href="http://maven.apache.org/plugins/maven-dependency-plugin/examples/filtering-the-dependency-tree.html" rel="noreferrer">a dependency:tree example</a> from the Maven site:</p>\n\n<pre><code>mvn dependency:tree -Dincludes=velocity:velocity\n</code></pre>\n\n<p>might output</p>\n\n<pre><code>[INFO] [dependency:tree]\n[INFO] org.apache.maven.plugins:maven-dependency-plugin:maven-plugin:2.0-alpha-5-SNAPSHOT\n[INFO] \\- org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-8:compile\n[INFO]    \\- org.codehaus.plexus:plexus-velocity:jar:1.1.3:compile\n[INFO]       \\- velocity:velocity:jar:1.4:compile\n</code></pre>\n'}, {'answer_id': 219325, 'author': 'Filip Korling', 'author_id': 25098, 'author_profile': 'https://Stackoverflow.com/users/25098', 'pm_score': 1, 'selected': False, 'text': '<p>The dependency information is also included in the Project Information/Dependencies report if you have maven generate a site for the project, using mvn site.</p>\n'}, {'answer_id': 274901, 'author': 'Brian Fox', 'author_id': 77489, 'author_profile': 'https://Stackoverflow.com/users/77489', 'pm_score': 3, 'selected': False, 'text': '<p>If you use eclipse and the <a href="https://www.eclipse.org/m2e/" rel="nofollow noreferrer">m2eclipse plugin</a> then there is a graphical version of dependency tree where you can filter by scope etc.</p>\n'}, {'answer_id': 4233244, 'author': 'Bang', 'author_id': 514515, 'author_profile': 'https://Stackoverflow.com/users/514515', 'pm_score': 2, 'selected': False, 'text': '<p>You can have many reports by </p>\n\n<blockquote>\n  <p>mvn site</p>\n</blockquote>\n\n<p>One of them is the dependency report.</p>\n'}]
['https://Stackoverflow.com/questions/34144', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3122/']