title: How to replace backslashes to slashes for ${basedir} property in maven profile profile
body: <p>I have a pom.xml with defined property <strong>module.basedir</strong> that is intended to contain transformed <strong>basedir</strong> property. It is defined as follows:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;module.basedir&gt;${basedir}&lt;/module.basedir&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>And I have following code that is executed using mgroovy plugin:</p>
  
  <pre><code>&lt;source&gt;
      println project.properties['module.basedir']
      project.properties['module.basedir']=project.properties['module.basedir'].replace('\\','/');
      println project.properties['module.basedir']
  &lt;/source&gt;
  </code></pre>
  
  <p>Later I use this property in other plugins. This works fine until I move plugin definitions into maven profile. And when maven profile is activated mgroovy plugin works fine, but when I access property in the next plugin I get unmodified value.</p>
  
  <p>This is how I access this property:</p>
  
  <pre><code>${module.basedir}
  </code></pre>
  
  <p>It looks like that when profile is executed it creates own copies of properties defined in project and they are used when referenced from plugins.</p>
  
  <p>Any suggestions?</p>