@ecrisostomo : As @lhazlewood mentioned, ${project.version} is going to be replaced by the current version during build time.
@lhazlewood : you are right, my code only generates the file but it is not being read from anywhere. Sorry but I did not understand that was also required. I will update Version.java now...