title: change deployed artifact name based on profile
body: <p>I have in a web application's pom file, a build profile, which does some necessary things (in my code) for qa testing.</p>
  
  <p>I have this code on svn and this code is compiled in Hudson, which deploys artifacts in nexus..</p>
  
  <p>Hudson has two jobs, one for qa profile (-P qa) and one for customers.</p>
  
  <p>What i need is that i change in my qa profile the artifact's name during deploy phase, so that nexus has two different war files, one for qa and one for customer. </p>
  
  <p>I use (after Google search) the following which looks like it does nothing in hudshon!</p>
  
  <pre><code>    &lt;profile&gt;
          &lt;id&gt;qa&lt;/id&gt;
          &lt;build&gt;
              &lt;plugins&gt;
                  &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.5&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;classifier&gt;qa&lt;/classifier&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/build&gt;
      &lt;/profile&gt;
  </code></pre>
  
  <p>any ideas someone?</p>