How to display svn version and timestamp using plugin with build number.
I currently have the following
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<configuration>
<format>At {0,time} on {0,date} : SVN Revision {1,number}</format>
<items>
<item>timestamp</item>
<item>buildNumber</item>
</items>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
</configuration>
</plugin>
</plugins>
It looks like this: At 8:02:51 AM on Feb 2, 2011 : SVN Revision 1
But my svn version is 1123. If I comment on <format>and <items>, I get the correct svn build number. How to display both?
thank
source
share