title: Find all direct dependencies of an artifact on Maven Central
body: <p>For an artifact on Maven central (or any other given Nexus repository), I want to make a list of all direct dependencies.</p>
  
  <p>At first, I thought about just reading the pom.xml and gather all entries from the dependency section. But I noticed that these entries might have no version (supplied by dependency management) or that entries might come from parent poms. </p>
  
  <p>My second idea was to build some kind of artificial Maven project and gather the dependencies with <code>mvn dependency:tree</code>. This might become complicated.</p>
  
  <p>What would be the most direct (but also reliable) way?</p>