title: How to implement auto-incrementing build number in maven project?
body: <p>How to implement auto-incrementing build number in maven project?</p>
  
  <p>Current version of my project is 0.9 and I'd like this from 0.9.1 to 0.9.2 and so on every build.</p>
  
  <p>I've been searching for this but I couldn't get anything to work.</p>
  
  <p>I've tried <a href="https://stackoverflow.com/questions/770364/what-is-a-good-way-to-handle-a-version-number-in-a-java-application">this</a> question,also tried maven <a href="http://www.mojohaus.org/buildnumber-maven-plugin/usage.html" rel="nofollow noreferrer">build number plugin</a> and I've tried this <a href="http://www.vineetmanohar.com/2009/10/how-to-automate-project-versioning-and-release-with-maven/" rel="nofollow noreferrer">blog</a>, but nothing seems to work. </p>
  
  <p>I tried the maven version plugin but it changes the jar name to app-0.9.[commit_hashcode].jar but I don't want this.</p>
  
  <p>I want the jar name to be app-0.9.jar and I want to access the build number from a properties file or something.</p>