[About] Get commit hash during build

Get commit hash during build to populate the contents of
the About dialog. WTD-699.
This commit is contained in:
Victor Woeltjen 2015-01-22 17:10:46 -08:00
parent 145f8c52d0
commit 740dde63a7

27
pom.xml
View File

@ -17,6 +17,7 @@
<plugins>
<!-- Assemble WAR file -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
@ -51,6 +52,32 @@
</configuration>
</plugin>
<!-- Get commit hash, timestamp -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
<execution>
<phase>validate</phase>
<goals>
<goal>create-timestamp</goal>
</goals>
</execution>
</executions>
<configuration>
<timestampFormat>yyyy-MM-dd HH:mm:ss</timestampFormat>
<doCheck>true</doCheck>
<doUpdate>false</doUpdate>
</configuration>
</plugin>
<!-- Get PhantomJS plugin -->
<plugin>
<groupId>com.github.klieber</groupId>