I am trying to get the mercury revision number in the manifest. I have read the following instructions:
http://maven.apache.org/plugin-developers/cookbook/add-svn-revision-to-manifest.html
Maven + Mercurial for build numbers
I do not receive an error message, but the SCM-Revision property in the manifest is always empty.
Section from POM:
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> <executions> <execution> <phase>validate</phase> <goals> <goal>hgchangeset</goal> </goals> </execution> </executions> <configuration> <doCheck>false</doCheck> <doUpdate>true</doUpdate> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifestEntries> <SCM-Revision>${buildNumber}</SCM-Revision> </manifestEntries> </archive> </configuration> </plugin>
How can I solve this problem?
source share