title: How do/can I change the value of a property in my pom.xml via commandline or mvn command?
body: <p>I have an internal library and I put the actual version in the property section.</p>
  
  <pre><code>&lt;properties&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;maven.compiler.source&gt;${java.version}&lt;/maven.compiler.source&gt;
      &lt;maven.compiler.target&gt;${java.version}&lt;/maven.compiler.target&gt;
      &lt;springfox-version&gt;2.5.0&lt;/springfox-version&gt;
      &lt;common.version&gt;6.0.3-SNAPSHOT&lt;/common.version&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>I want to automate the release process so in my Jenkins pipeline script, I would like to be able to run a command and update the 'common.version' to whatever the user entered as parameter.</p>
  
  <p>When I run:</p>
  
  <pre><code>mvn versions:update-property -Dproperty=common.version -DnewVersion=[6.0.3] -DallowSnapshots=true
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>[INFO] Property ${common.version}: Leaving unchanged as 6.0.3-SNAPSHOT
  </code></pre>
  
  <p>What am I missing?</p>