title: How to update version of maven artifact on Azure pipeline?
body: <p>I am using Azure pipelines (the .yml type) to build and publish an artifact from a Maven project.</p>
  
  <p>Right now all I can do is publish artifacts with the exact version number that is defined in the project's <code>pom.xml</code> file, which is <code>1.0-SNAPSHOT</code></p>
  
  <p>I would like the pipeline to automatically remove the <code>-SNAPSHOT</code> from it and update the patch version every time a new artifact is built and released, increasing the patch version based on the latest release. so it would be <code>1.0.1</code>, then <code>1.0.2</code> after that, and so forth.</p>
  
  <p>What should I change in the <code>pom.xml</code> or in the <code>azure-pipelines.yml</code> to make that happen?</p>