feat:新增版本打包插件,在admin监控面板中显示版本信息及编译打包时间

This commit is contained in:
liyong 2025-12-01 18:28:19 +08:00
parent 6aa4e83413
commit f0e1a93fba
3 changed files with 25 additions and 0 deletions

View File

@ -56,6 +56,7 @@
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
<maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
<flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
<build-helper-maven-plugin.version>1.10</build-helper-maven-plugin.version>
<!-- 打包默认跳过测试 -->
<skipTests>true</skipTests>
</properties>

View File

@ -147,6 +147,25 @@
<warName>${project.artifactId}</warName>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
<executions>
<execution>
<id>timestamp-property</id>
<goals>
<goal>timestamp-property</goal>
</goals>
<configuration>
<name>build.timestamp</name>
<pattern>yyyyMMdd HH:mm</pattern>
<locale>en_US</locale>
<timeZone>GMT+8</timeZone>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@ -218,6 +218,11 @@ xss:
excludeUrls:
- /system/notice
info:
name: @project.artifactId@
description: @project.description@
version: @project.parent.version@_@build.timestamp@
--- # 分布式锁 lock4j 全局配置
lock4j:
# 获取分布式锁超时时间,默认为 3000 毫秒