title: Maven Assembly: include a dependency with a different classifier
body: <p>I would like to build two different versions of a WAR in Maven (I know that's a no-no, that's just the way it is given the current situation). In the version of a WAR depicted by an assembly, I want to replace a dependency by the same dependency with a different classifier. For example, I was expecting this assembly to work:</p>
  
  <pre><code>&lt;assembly&gt;
    &lt;id&gt;end-user&lt;/id&gt;
    &lt;formats&gt;
      &lt;format&gt;war&lt;/format&gt;
    &lt;/formats&gt;
    &lt;dependencySets&gt;
      &lt;dependencySet&gt;
        &lt;excludes&gt;
          &lt;exclude&gt;group:artifact:jar:${project.version}&lt;/exclude&gt;
        &lt;/excludes&gt;
        &lt;includes&gt;
          &lt;include&gt;group:artifact:jar:${project.version}:end-user&lt;/include&gt;
        &lt;/includes&gt;
      &lt;/dependencySet&gt;
    &lt;/dependencySets&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>This doesn't work, but am I heading in the right direction? I've already read all the pages on the <a href="http://maven.apache.org/plugins/maven-assembly-plugin/" rel="noreferrer">Maven assembly page</a> and the section on the <a href="http://www.sonatype.com/books/mvnref-book/reference/assemblies-sect-output-algorithm.html" rel="noreferrer">Maven Definitive Guide</a> that seems relevant. Any pointers would be helpful.</p>