title: Change a file xml with maven plugin
body: <p>I´m working with maven 3, migrating the old application using hivemind and ant. I need to change The file "Hivemodule.xml" with some properties with information about enviroment, I define with profile but it doesn´t work.
  I try using maven-resources-plugin but without success, perhaps it just do with properties files.</p>
  
  <p>Detail: The Hivemodule.xml is inside the file jar and I want to unpack this file to turn the content of internal hivemodule configurations and after, to pack again... I´m in the unpack fase.</p>
  
  <p>Here is my file in Hivemodule.xml and the parameters that I want to turn: </p>
  
  <pre><code>PROVIDER_URL="ormi://localhost:23791/"
  APPLICATION_NAME="services_1_11"
  SECURITY_PRINCIPAL="oc4jadmin"
  SECURITY_CREDENTIAL="welcome"
  </code></pre>
  
  <p>For use of profiles, I edited this file:</p>
  
  <pre><code>PROVIDER_URL="${PROVIDER_URL}"
  APPLICATION_NAME="${APPLICATION_NAME}"
  SECURITY_PRINCIPAL="${SECURITY_PRINCIPAL}"
  SECURITY_CREDENTIAL="${SECURITY_CREDENTIAL}"
  </code></pre>
  
  <p>In my pom.xml, the references to profile:</p>
  
  <pre><code>&lt;profiles&gt;
  
          &lt;profile&gt;
              &lt;id&gt;local&lt;/id&gt;
              &lt;properties&gt;
                  &lt;PROVIDER_URL&gt;ormi://localhost:23791/&lt;/PROVIDER_URL&gt;
                  &lt;APPLICATION_NAME&gt;services_1_11&lt;/APPLICATION_NAME&gt;
                  &lt;SECURITY_PRINCIPAL&gt;oc4jadmin&lt;/SECURITY_PRINCIPAL&gt;
                  &lt;SECURITY_CREDENTIAL&gt;welcome&lt;/SECURITY_CREDENTIAL&gt;
              &lt;/properties&gt;
          &lt;/profile&gt;
  
      &lt;/profiles&gt;
  </code></pre>
  
  <p>And my resource configurations:</p>
  
  <pre><code>&lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;${serviceSegPath}/${serviceName}/META-INF/&lt;/directory&gt;
              &lt;filtering&gt;true&lt;/filtering&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;    
  </code></pre>
  
  <p>Is there any suggestion to solution this? Another plugin to make changes in xml file?</p>