mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 13:17:53 +00:00
[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:
parent
145f8c52d0
commit
740dde63a7
27
pom.xml
27
pom.xml
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
||||||
|
<!-- Assemble WAR file -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
@ -51,6 +52,32 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</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 -->
|
<!-- Get PhantomJS plugin -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.github.klieber</groupId>
|
<groupId>com.github.klieber</groupId>
|
||||||
|
Loading…
Reference in New Issue
Block a user