maven resource filter xml
<p>I am trying to use respurce filtering for .properties &amp; .xml files.
I am having a ${variable} value and maven replaces the ${--} with its real value.
I am able to achieve this for properties files, but for .xml file I am not sure how to do it.</p>

<p>My pom.xml</p>

<pre><code>&lt;resource&gt;
&lt;directory&gt;${basedir}/../&lt;/directory&gt;
&lt;filtering&gt;true&lt;/filtering&gt;
&lt;includes&gt;
 &lt;include&gt;filename/*.properties&lt;/include&gt;
&lt;/includes&gt;
  &lt;/resource&gt;
</code></pre>

<p>My properties file</p>

<p>value=${value}</p>

<p>I am kind of following this approach
<a href="http://piotrnowicki.com/2012/10/filtered-resources-in-maven/" rel="nofollow">http://piotrnowicki.com/2012/10/filtered-resources-in-maven/</a></p>

<p>Similar question was posted:</p>