title: How can I rename a file when assembling a spring boot project?
body: <p>I have the following assembly.xml. I was trying to figure out how when including files I can rename them to something else. Currently, my tar has the war file as project-1.0.0.0.war and I want it to be project.war. How can I accomplish this?</p>
  
  <pre><code>&lt;assembly&gt;
  &lt;id&gt;${version}-tar&lt;/id&gt;
  &lt;formats&gt;
      &lt;format&gt;tar.gz&lt;/format&gt;
  &lt;/formats&gt;
  &lt;includeBaseDirectory&gt;true&lt;/includeBaseDirectory&gt;
  &lt;baseDirectory&gt;project-${version}&lt;/baseDirectory&gt;
  
  &lt;fileSets&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;target&lt;/directory&gt;
          &lt;outputDirectory&gt;.&lt;/outputDirectory&gt;
          &lt;includes&gt;
              &lt;include&gt;project-${version}.war&lt;/include&gt;
          &lt;/includes&gt;
      &lt;/fileSet&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;etc/bin&lt;/directory&gt;
          &lt;outputDirectory&gt;.&lt;/outputDirectory&gt;
          &lt;includes&gt;
              &lt;include&gt;start&lt;/include&gt;
              &lt;include&gt;stop&lt;/include&gt;
          &lt;/includes&gt;
      &lt;/fileSet&gt;
  &lt;/fileSets&gt;
  </code></pre>
  
  <p></p>