Maven 如何打包 Spring Boot 项目打包的发布 Jar 名字

Spring Boot 打包的时候如果不进行配置的话将会在生成的包中添加版本名字。

如果你不希望在生成的包中添加版本名字的话,你需要在 maven 的 pom.xml build 部分添加:

<finalName>mls-service</finalName>

这样打包成的 jar 包将会被命名为: mls-service.jar

如上图的配置。

https://www.ossez.com/t/maven-spring-boot-jar/13826

原文地址:https://www.cnblogs.com/huyuchengus/p/15686094.html