I have a file that I'd like to show the version on top. For example, if my POM.xml is on version 1.1-SNAPSHOT, I like this file also include 1.1-SNAPSHOT on top of it (or somewhere close to top). When I release, I want the version change to 1.1 (i.e. the same as POM.xml). I could write a bash script to do that before and after each Maven build, but I wonder if Maven can do that.
I see buildnumber Maven plugin may do something similar (eg. Puts the build number in manifest of a jar file). But can Maven put the "version" into a "specific file" that I specify?