title: How to query Maven repository from application to obtain metadata
body: <p>I'm trying to migrate an eclipse project to a maven projet. The eclipse project refernces  many jars in its .classpath file.
  I'm looking for a way to generate the corresponding pom dependencies.</p>
  
  <p>Say I have Velocity-3.1.jar, I want my app generate corresponding XML chunk : </p>
  
  <pre><code>&lt;dependency&gt;
  &lt;groupId&gt;velocity&lt;/groupId&gt;
  &lt;artifactId&gt;Apache-velocity&lt;/artifactId&gt;
  &lt;version&gt;3.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The app was able to query some service and found the groupId, artefactId, version data.</p>
  
  <p>Of course, I accept errors and will check the generated metadata.</p>
  
  <p>Is there some Maven service/plugin which would do the trick ?</p>
  
  <p>many thanks !</p>