【英文】Maven项目指定打包后的文件名

Preface

Specifying the file name for a Maven project after packaging.

Specifying the file name after packaging through configuration file

<fileName></fileName>: Specify the file name.

pom.xml
1
2
3
4
5
6
7
8
9
<build>
<fileName>app</fileName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

Completion

References

Bilibili - Heima Programmer