I want to find a maven native (i.e. without calling external programs) to inject the svn revision in the war manifest.
Does anybody know a way to do that?
I found mention to how to add the subversion revision to manifests in jar files but not with war files.
I searched SO but could not find this issue specifically.
This is possible with the Build Number Maven Plugin using the
svnjavaprovider:The Build Number Maven Plugin sets the build number in the
${buildNumber}property that you can then use in your POM.Then, to add the build number in the MANIFEST of a war, configure the plugin as mentioned in the Usage page: