For continuous integration I am using Maven 2 and TeamCity 5.1.2. My builder number is defined by the pattern %maven.project.version%.{0}
, and this is exported to Maven build script as ${build.number}
When the build creates the jar file I would like the jar to contain a property file with this information inside:
build.number=#1.1-SNAPSHOT.106
This is so that the build number is available for display etc at runtime.