title: How to get the actual output file name from maven
body: <p>I try to configure the maven ant plugin to copy the built artifact to a custom location:</p>
  
  <pre><code>&lt;plugins&gt;
    &lt;plugin&gt;
      &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
      &lt;executions&gt;
        &lt;execution&gt;
          &lt;phase&gt;install&lt;/phase&gt;
          &lt;goals&gt;
            &lt;goal&gt;run&lt;/goal&gt;
          &lt;/goals&gt;
          &lt;configuration&gt;
            &lt;tasks&gt;
  
              &lt;copy verbose="true" 
                file="target/${project.build.finalName}.${project.packaging}"
                tofile="${user.home}/tmp/test/${project.build.finalName}.${project.packaging}"/&gt;
  
            &lt;/tasks&gt;
          &lt;/configuration&gt;
        &lt;/execution&gt;
      &lt;/executions&gt;
    &lt;/plugin&gt;
  &lt;/plugins&gt;
  </code></pre>
  
  <p>This works fine, as long as the packaging is one of the standard ones... but if the packaging of the project is "bundle" (which generates a .jar), then the ${project.packaging} variable is "bundle" and the actual file ends with ".jar" = the copy fails.</p>
  
  <p>How can I get the "real" name of the file that is put into the output directory?</p>