title: Setting properties in maven with gmaven
body: <p>I am trying to overwrite the following property in maven using gmaven:</p>
  
  <pre><code>    &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.gmaven&lt;/groupId&gt;
                  &lt;artifactId&gt;gmaven-plugin&lt;/artifactId&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;setproperty&lt;/id&gt;
                          &lt;phase&gt;validate&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;execute&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;source&gt;
                                  pom.properties['main.build.directory']=project.parent.build.directory.absolutePath.replace('\\','/');
                              &lt;/source&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  
  <p>But I get this error:;</p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.gmaven:gmaven-plugin:1.5:execute (setproperty) on project my-project: startup failed, script139276
  2592853.groovy: 1: expecting ''', found '&lt;EOF&gt;' @ line 1, column 84.
  [ERROR] 1 error
  </code></pre>
  
  <p>What is wrong with the above groovy snippet?</p>