title: Maven archiver uses unlocked snapshots in classpath, but copy-dependencies copy locked snapshots
body: <p>I am trying to use the maven-jar-plugin and maven-dependency-plugin to create an runnable "bundle" of my application. It works fine in most cases, but when I have a snapshot in the dependency hierarchy, the copy-dependencies goals seems to translate the snapshot-dependencies into locked snapshots (snapshots with timestamp)</p>
  
  <p>However, addClasspath from archiver-plugin does not translate snapshot dependencies:</p>
  
  <ul>
  <li>in lib, there is foolib-1.0.1-20130108.143522-8.jar</li>
  <li>the classpath contains lib/foolib-1.0.1-SNAPSHOT.jar</li>
  </ul>
  
  <p>so I can't run the application.</p>
  
  <p>I can't find a way to tell the copy-dependencies to not translate SNAPSHOTs or one to tell the archiver-plugin to translate SNAPSHOTs.</p>
  
  <p>Here is the relevant snippet of the pom.xml:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;          
      &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;           
      &lt;version&gt;2.5.1&lt;/version&gt;                  
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;copy-libs&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;    
              &lt;goals&gt;
                  &lt;goal&gt;copy-dependencies&lt;/goal&gt;                          
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;excludeScope&gt;provided&lt;/excludeScope&gt;
                  &lt;outputDirectory&gt;${package.dest}/lib&lt;/outputDirectory&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  
  &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;outputDirectory&gt;${package.dest}&lt;/outputDirectory&gt;
          &lt;archive&gt;
              &lt;manifest&gt;
                  &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                  &lt;classpathPrefix&gt;lib/&lt;/classpathPrefix&gt;
                  &lt;mainClass&gt;${main.class}&lt;/mainClass&gt;
              &lt;/manifest&gt;
          &lt;/archive&gt;
          &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>