title: Renaming Maven dependency in WAR's WEB-INF/lib folder
body: <p>I need to have a JAR dependency in the Maven generated WAR's <code>WEB-INF/lib</code> folder as <code>x-1.0.final.jar</code> instead of <code>x-1.0.jar</code>, which is the name it has in the repository. What would be the best way to achieve this?</p>
  
  <p>In my POM I have:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;foo&lt;/groupId&gt;
    &lt;artifactId&gt;x&lt;/artifactId&gt;
    &lt;version&gt;1.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I want this to appear in the <code>WEB-INF/lib</code> folder as <code>x-1.0.final.jar</code>.</p>
  
  <p>It's and external dependency on Maven Central I don't have control over. Also I don't want to force everyone using this to redeploy the dependency to their local repositories.</p>
  
  <p>Is there a Maven plugin that I could utilize or should I start coding my own?</p>