指定jar名称
在build标签下加 finalName 标签
<build>
<finalName>
jar包名
</finalName>
<plugins>
.........
</plugins>
</build>
<finalName>jar包名</finalName>
包名后加时间戳
1,在属性中指定时间戳格式
<properties>
<java.version>1.8</java.version>
<maven.build.timestamp.format>yyMMddHHmm</maven.build.timestamp.format>
</properties>
<maven.build.timestamp.format>yyMMddHHmm</maven.build.timestamp.format>
2.在build标签下的finalName标签中指定
<build>
<finalName>
${project.artifactId}-${project.version}-${maven.build.timestamp}
</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<finalName>${project.artifactId}-${project.version}-${maven.build.timestamp}/finalName>