title: Debug Maven to find out the war file name that has been created
body: <p>I am getting this exception in Maven2 when i run mvn deploy </p>
  
  <p>Please see the error </p>
  
  <pre><code>[INFO] An Ant BuildException has occured: Warning: Could not find file D:\bayer\service\target\${file.name}.war to copy.
  I have this below line under my POM.xml file 
  </code></pre>
  
  <p>Please tell me is it possible to see the file.name that is forming at runtime ??</p>
  
  <p>I have this line under my POM.xml file </p>
  
  <pre><code>&lt;copy file="${project.build.directory}/${file.name}.${project.packaging}" tofile="${deploy.home}/${webapps.dir}/${file.name}.${project.packaging}" /&gt;
  </code></pre>
  
  <p>How can we debug this ?? </p>