title: How to know (pragmatically) correct maven artifact-id group-id for a jar name
body: <p>Could you please let me know if there is any search service available where I can search maven artifact-id, group-id for a jar pragmatically.</p>
  
  <p>The idea is to build a simple tool (may be a jar running from console) which scans my lib directory (for all jar names) and produces a pom file for them.</p>
  
  <p>As of now when I need to generate the pom xml, I do it manually by searching for artifact-id, group-id on 
  mvnrepository.com/artifact/commons-collections/commons-collections/3.2.1.</p>
  
  <p>I am just thinking of any service which takes jar name (ex. commons-collections 3.2.1) in request and returns the response like below:</p>
  
  <pre><code> &lt;dependency&gt;
       &lt;groupId&gt;commons-collections&lt;/groupId&gt;
       &lt;artifactId&gt;commons-collections&lt;/artifactId&gt;
       &lt;version&gt;3.2.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Any pointers to existing tools would be appreciated.</p>