title: Getting Project Version from Maven POM in Jenkins
body: <p>Is there any way a Jenkins build can be aware of the Maven version number of a project after processing the POM?</p>
  
  <p>I've got some projects where versioning is controlled by Maven, and in a post-build job we'd like to create a Debian package and call some shell scripts. What I need is for the version number that Maven used to be available as a Jenkins environment variable so I can pass it to post-build actions.</p>
  
  <p>To be clear, I'm <em>not</em> needing to know how to get Jenkins to pass a version number to Maven; instead I want Maven to pass a version number to Jenkins!</p>