title: Get all versions of a Nexus repository via REST api
body: <p>I want to list all available versions of a Nexus (2.11.1-01) snapshot repository.
  The way via REST api / lucene and <code>gav coordinates</code> like that :<br></p>
  
  <pre><code>http://nexus/service/local/lucene/search?g=com.foo&amp;a=foo-bar&amp;v=
  </code></pre>
  
  <p>lists the snapshot versions, <strong>but also</strong> release versions, because the artifact foo-bar also exists in a release repository. Because of that, i read the maven-metadata.xml :<br></p>
  
  <pre><code>http://nexus/service/local/repositories/com-foo-snapshots/content/com/foo/foo-bar/maven-metadata.xml
  </code></pre>
  
  <p>The lucene search lacks a repository coordinate like the maven feature, f.e.<br>
  get the latest version of a snapshot :</p>
  
  <pre><code>http://nexus/service/local/artifact/maven/resolve?r=com-foo-snapshots&amp;g=com.foo&amp;a=foo-bar&amp;v=0.3-SNAPSHOT
  </code></pre>
  
  <p>or get the recent snapshot version :<br></p>
  
  <pre><code>http://nexus/service/local/artifact/maven/resolve?r=com-foo-snapshots&amp;g=com.foo&amp;a=foo-bar&amp;v=LATEST
  </code></pre>
  
  <p>Seems, i cant't use the maven-metadata.xml, because not every repository contains that file.<br>
  Is there any other way via Nexus REST api or another api to get all versions of a specific Nexus repository/artifactid even if artefactid exists in different repositories ?<br>
  Is it possible to force the creation of a maven-metadata.xml for every repository ?<br>The available administrative scheduled Nexus Task ain't sufficient, maybe a trigger that fires with every artifact update ?</p>