title: Maven - How to override version?
body: <p>my pom.xml looks like this: </p>
  
  <pre><code>&lt;project&gt;
  ...
  &lt;version&gt;1.0.0-A&lt;/version&gt;
  ...
  &lt;/project&gt;
  </code></pre>
  
  <p>I have to get rid of the '-A' suffix. So I found this plugin which removes it and saves it into a new variable. </p>
  
  <pre><code>    &lt;plugin&gt;
          &lt;groupId&gt;org.codehaus.groovy.maven&lt;/groupId&gt;
          &lt;artifactId&gt;gmaven-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;execute&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;source&gt;
                  System.setProperty("versionWithOutPrefix", "${project.version}".replace('-SNAPSHOT', ''))
                &lt;/source&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>But I need to get the value of <code>&lt;version&gt;</code> changed. Is there a way to do this?</p>