title: Using maven profile for artifact versioning
body: <p>I want a project's version number to be as the follow format for the normal release versioning:</p>
  
  <pre><code>&lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;version&gt;1.0.1-SNAPSHOT&lt;/version&gt;
  ......
  </code></pre>
  
  <p>On the other hand, I want to have a built artifact for every change merged like below: </p>
  
  <pre><code>&lt;version&gt;1.0-SNAPSHOT-${timestamp}&lt;/version&gt;
  </code></pre>
  
  <p>Can I achieve this by using maven profile? something like:</p>
  
  <pre><code>&lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;normal&lt;/id&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;version&gt;
      &lt;/proifle&gt;
      &lt;profile&gt;
          &lt;id&gt;build&lt;/id&gt;
          &lt;version&gt;1.0-SNAPSHOT-${timestamp}&lt;version&gt;
      &lt;/proifle&gt;
  &lt;/profiles&gt;
  </code></pre>
  
  <p>so that I can build it like :</p>
  
  <pre><code>mvn package -P normal  // this gives me artifact-1.0-SNAPSHOT.jar
  or
  mvn package -P build     // this gives me artifact-1.0-SNAPSHOT-${timestamp}.jar 
  </code></pre>
  
  <p>if profile can solve this problem, what are the other approaches?</p>