title: Maven war packaging creating multiple version of the same SNAPSHOT jars in WEB-INF/lib
body: <p>To get a <em>war</em> we do:</p>
  
  <pre><code>mvn clean
  mvn package
  </code></pre>
  
  <p>Now we have a <em>war</em>. The <code>WEB-INF/lib</code> in this has duplicate <code>SNAPSHOT</code>s like these:</p>
  
  <pre><code>xyz-0.4.0-20111110.152222-176.jar
  xyz-0.4.0-SNAPSHOT.jar
  </code></pre>
  
  <p>I have no idea why <em>xyz-0.4.0-20111110.152222-176.jar</em> is getting included.</p>
  
  <p>This is happening for all my dependencies. We have a local nexus installation.</p>
  
  <p>The <em>pom.xml</em> is very ordinary. It only has dependency for <em>xyz-0.4.0-SNAPSHOT</em>, and no plugin section!</p>