Add build time and branch to MANIFEST.
This commit is contained in:
parent
d184036935
commit
fc5bcba800
99
pom.xml
99
pom.xml
|
@ -458,12 +458,28 @@
|
||||||
<goals>
|
<goals>
|
||||||
<goal>create</goal>
|
<goal>create</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<useLastCommittedRevision>true</useLastCommittedRevision>
|
||||||
|
<scmBranchPropertyName>scmBranch</scmBranchPropertyName>
|
||||||
|
<doCheck>false</doCheck>
|
||||||
|
<doUpdate>false</doUpdate>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>create-timestamp-id</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>create-timestamp</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<timestampFormat>yyyy-MM-dd HH:mm:ss.S</timestampFormat>
|
||||||
|
<timestampPropertyName>scmDate</timestampPropertyName>
|
||||||
|
<!-- formats the timestamp all together like 2016-04-04 14:17:05.123 and puts
|
||||||
|
it in the ${myBuildNumberVariable} buildProperty -->
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
|
||||||
<doCheck>false</doCheck>
|
|
||||||
<doUpdate>false</doUpdate>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
@ -477,10 +493,43 @@
|
||||||
</manifest>
|
</manifest>
|
||||||
<manifestEntries>
|
<manifestEntries>
|
||||||
<SCM-Revision>${buildNumber}</SCM-Revision>
|
<SCM-Revision>${buildNumber}</SCM-Revision>
|
||||||
|
<Build-Time>${scmDate}</Build-Time>
|
||||||
|
<SCM-Branch>${scmBranch}</SCM-Branch>
|
||||||
</manifestEntries>
|
</manifestEntries>
|
||||||
</archive>
|
</archive>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
|
<version>1.0.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>enforce</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>enforce</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<rules>
|
||||||
|
<requireMavenVersion>
|
||||||
|
<version>[${maven.version},)</version>
|
||||||
|
<message>Check for Maven version >=${maven.version} failed. Update your Maven install.</message>
|
||||||
|
</requireMavenVersion>
|
||||||
|
<!--requireJavaVersion>
|
||||||
|
<version>${java_version}</version>
|
||||||
|
</requireJavaVersion-->
|
||||||
|
<requireProperty>
|
||||||
|
<property>java.vm.name</property>
|
||||||
|
<message>Java Vendor must be OpenJDK.</message>
|
||||||
|
<regex>${java.expected.vm}</regex>
|
||||||
|
<regexMessage>Java Vendor must be OpenJDK. Found: ${java.vm.name}</regexMessage>
|
||||||
|
</requireProperty>
|
||||||
|
</rules>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
@ -679,53 +728,13 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>buildnumber-maven-plugin</artifactId>
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
||||||
<version>1.4</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>useLastCommittedRevision</id>
|
|
||||||
<phase>validate</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>create</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<doCheck>false</doCheck>
|
|
||||||
<doUpdate>false</doUpdate>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- enforce integration build requirements -->
|
<!-- enforce integration build requirements -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
<version>1.0.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>enforce</id>
|
|
||||||
<phase>validate</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>enforce</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<rules>
|
|
||||||
<requireMavenVersion>
|
|
||||||
<version>[${maven.version},)</version>
|
|
||||||
<message>Check for Maven version >=${maven.version} failed. Update your Maven install.</message>
|
|
||||||
</requireMavenVersion>
|
|
||||||
<!--requireJavaVersion>
|
|
||||||
<version>${java_version}</version>
|
|
||||||
</requireJavaVersion-->
|
|
||||||
<requireProperty>
|
|
||||||
<property>java.vm.name</property>
|
|
||||||
<message>Java Vendor must be OpenJDK.</message>
|
|
||||||
<regex>${java.expected.vm}</regex>
|
|
||||||
<regexMessage>Java Vendor must be OpenJDK. Found: ${java.vm.name}</regexMessage>
|
|
||||||
</requireProperty>
|
|
||||||
</rules>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
Loading…
Reference in New Issue