title: version property dynamic in pom.xml
body: <p>I have a Maven pom.xml, I build project and executable jar deploy in Nexus with Jenkins.
  But I want changes of version name according to branch name.</p>
  
  <p>For example: I have in pom.xml    </p>
  
  <pre><code>&lt;groupId&gt;net.test&lt;/groupId&gt;
  &lt;artifactId&gt;test-parent&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;iin-parent&lt;/name&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  </code></pre>
  
  <p>I need set like this : (Branch- Master/Test1/Test2/..)</p>
  
  <pre><code>&lt;groupId&gt;net.test&lt;/groupId&gt;
  &lt;artifactId&gt;test-parent&lt;/artifactId&gt;
  &lt;version&gt;BranchName_0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;iin-parent&lt;/name&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  </code></pre>
  
  <p>How can this be done?</p>
  
  <p>I was using MVN build like -Drevision=BranchName-SNAPSHOT clean compile package deploy. But I want dynamically fetch the branch name.</p>
  
  <pre><code>enter code here
  </code></pre>