title: Maven overwrites file with replaced string
body: <p>I'm creating web-app with Java+Spring+FreeMarker, and, I want to write app version directly into FreeMarker template. I try using maven replacer plugin, but, when I create  war package, file with replaced string (in <em>target</em> directory) becomes overriden with file with origin token.
  Here is quote from <em>pom.xml</em>:</p>
  
  <pre><code>&lt;plugin&gt;
  &lt;groupId&gt;com.google.code.maven-replacer-plugin&lt;/groupId&gt;
  &lt;artifactId&gt;replacer&lt;/artifactId&gt;
  &lt;version&gt;1.5.3&lt;/version&gt;
  &lt;executions&gt;
   &lt;execution&gt;
    &lt;phase&gt;generate-resources&lt;/phase&gt;
    &lt;goals&gt;
     &lt;goal&gt;replace&lt;/goal&gt;
    &lt;/goals&gt;
   &lt;/execution&gt;
  &lt;/executions&gt;
  &lt;configuration&gt;
   &lt;includes&gt;
    &lt;include&gt;${basedir}\src\main\webapp\templates\include\version.ftl
    &lt;/include&gt;
   &lt;/includes&gt;
   &lt;outputFile&gt;${basedir}\target\${project.build.finalName}\templates\include\version.ftl
   &lt;/outputFile&gt;
  &lt;replacements&gt;
   &lt;replacement&gt;
    &lt;token&gt;version&lt;/token&gt;
    &lt;value&gt;${project.build.finalName}&lt;/value&gt;
   &lt;/replacement&gt;
  &lt;/replacements&gt;
  &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>What I'm doing wrong?</p>