update build time
This commit is contained in:
@@ -106,6 +106,12 @@
|
|||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<!-- timestamp插件 -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
@@ -127,6 +133,25 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<!-- timestamp插件,生成编译时间 -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>timestamp-property</id>
|
||||||
|
<goals>
|
||||||
|
<goal>timestamp-property</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<name>build.time</name>
|
||||||
|
<pattern>yyyy-MM-dd HH:mm</pattern>
|
||||||
|
<timeZone>GMT+8</timeZone>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<!-- jar插件,配置manifest文件,加入lib包的jar依赖 -->
|
<!-- jar插件,配置manifest文件,加入lib包的jar依赖 -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@@ -141,7 +166,8 @@
|
|||||||
</manifest>
|
</manifest>
|
||||||
<addMavenDescriptor>false</addMavenDescriptor>
|
<addMavenDescriptor>false</addMavenDescriptor>
|
||||||
<manifestEntries>
|
<manifestEntries>
|
||||||
<Build-Time>${maven.build.timestamp}</Build-Time>
|
<!--suppress UnresolvedMavenProperty -->
|
||||||
|
<Build-Time>${build.time}</Build-Time>
|
||||||
</manifestEntries>
|
</manifestEntries>
|
||||||
</archive>
|
</archive>
|
||||||
</configuration>
|
</configuration>
|
||||||
@@ -184,7 +210,8 @@
|
|||||||
</manifest>
|
</manifest>
|
||||||
<addMavenDescriptor>false</addMavenDescriptor>
|
<addMavenDescriptor>false</addMavenDescriptor>
|
||||||
<manifestEntries>
|
<manifestEntries>
|
||||||
<Build-Time>${maven.build.timestamp}</Build-Time>
|
<!--suppress UnresolvedMavenProperty -->
|
||||||
|
<Build-Time>${build.time}</Build-Time>
|
||||||
</manifestEntries>
|
</manifestEntries>
|
||||||
</archive>
|
</archive>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
Reference in New Issue
Block a user