title: How to replace a token with value in java source using maven replacer plugin?
body: <pre class="lang-xml prettyprint-override"><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.0&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;DB schema-replacement&lt;/id&gt;
              &lt;phase&gt;compile&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;src/main/java/com/swissre/gc7/dao/hibernate/*.java&lt;/include&gt;
              &lt;include&gt;src/main/java/com/swissre/gc7/dao/*.java&lt;/include&gt;
              &lt;include&gt;src/main/java/com/swissre/gc7/dao/hibernate/*.java&lt;/include&gt;
              &lt;include&gt;src/main/java/com/swissre/gc7/dao/*/*/hibernate/*.java&lt;/include&gt;
              &lt;include&gt;src/main/java/com/swissre/gc7/dao/*/*/valueGroup/hibernate/*.java&lt;/include&gt;
          &lt;/includes&gt;
          &lt;replacements&gt;
              &lt;replacement&gt;
                  &lt;token&gt;G10MDA.&lt;/token&gt; &lt;!-- Token which needs to be replaced --&gt;
                  &lt;value&gt;S1MTHT.&lt;/value&gt; &lt;!-- Value which is replaced for given token --&gt;
              &lt;/replacement&gt;
              &lt;replacement&gt;
                  &lt;token&gt;"G10MDA.&lt;/token&gt; &lt;!-- Token which needs to be replaced --&gt;
                  &lt;value&gt;"S1MTHT.&lt;/value&gt; &lt;!-- Value which is replaced for given token --&gt;
              &lt;/replacement&gt;
  .....
  .....
  </code></pre>
  
  <p>This above code is not working. </p>
  
  <p>Could you please someone help me? </p>
  
  <p>i want to replace token in java source file and value should be included in .class file.</p>