title: Maven Version number in java file
body: <p>I come from ANT where you can invoke a .java file to obtain the version number through executing some method. I would like to do something similar in my new pom.xml to automatically obtain the correct version number. I need the app to know about its own version and at the same time Maven to know about the version got make the right builds. Holding the version infomormation doubled is no option.</p>
  
  <p>Or can Maven create a new .java file during/before building? </p>
  
  <p>I can image quite a few ways to achive this, but is there a best practise way to do this in Maven project?</p>