title: Can I change the timestamp of a snapshot to the build number?
body: <p>We've been seeing a bug recently where Maven tries to retrieve a SNAPSHOT that doesn't exist. As you can see the build number (whatever that is, because it's not our build number) matches, but the timestamp doesn't, causing the build to fail. This happens once in every say 20 builds.</p>
  
  <p>This is in Nexus:
  <img src="https://user-images.githubusercontent.com/794529/29973379-a6a6db8e-8f2f-11e7-8359-c9410100c22f.png" alt="In nexus"></p>
  
  <p>And this is what happens during the build:</p>
  
  <p><img src="https://user-images.githubusercontent.com/794529/29973385-a955dae2-8f2f-11e7-9a31-9faee50feab7.png" alt="Articats not found"></p>
  
  <p>As you can see it tries to retrieve <code>relations-models:jar:1.1-20170901.134955-278</code> which doesn't exist, while <code>20170901.134954-278</code> does. Notice the offset of one second.</p>
  
  <ol>
  <li>Does anyone else have this problem? And a workaround?</li>
  <li>I was thinking of replacing the timestamp with the build number, but I can't find a way to influence how snapshots are suffixed. Does anyone know how to do that?</li>
  </ol>
  
  <p>This concerns a (big) multi-module project, where this is one of the sub-modules. </p>
  
  <p>The Jar plugin is configured like this</p>
  
  <p><code>
  &lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
          &lt;archive&gt;
              &lt;manifest&gt;
                  &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                  &lt;classpathPrefix&gt;lib/&lt;/classpathPrefix&gt;
                  &lt;mainClass&gt;me.magnet.redirect.RedirectService&lt;/mainClass&gt;
                  &lt;useUniqueVersions&gt;false&lt;/useUniqueVersions&gt;
                  &lt;classpathLayoutType&gt;custom&lt;/classpathLayoutType
   &lt;customClasspathLayout&gt;$${artifact.artifactId}-$${artifact.baseVersion}.$${artifact.extension}&lt;/customClasspathLayout&gt;
              &lt;/manifest&gt;
          &lt;/archive&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></p>
  
  <p>And the deploy plugin like this:</p>
  
  <p><code>
  &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.8.2&lt;/version&gt;
          &lt;configuration&gt;
              &lt;uniqueVersion&gt;false&lt;/uniqueVersion&gt;
              &lt;deployAtEnd&gt;true&lt;/deployAtEnd&gt;
          &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></p>
  
  <p>The build runs in parallel too. </p>