xml
<plugin>
<groupid>org.codehaus.mojo</groupid>
<artifactid>build-helper-maven-plugin</artifactid>
<executions>
<execution>
<goals>
<goal>timestamp-property</goal>
</goals>
<configuration>
<name>mojo.time</name>
<pattern>yyyy年MM月dd日HH时mm分ss秒</pattern>
<locale>zh_CN</locale>
<timezone>GMT+8</timezone>
</configuration>
</execution>
</executions>
</plugin>
- 使用方式
xml
<finalname>${project.artifactId}-${project.version}-${mojo.time}</finalname>