如果不配置,默认jar包后面会添加项目里的版本号,可以采用如下配置设置最终打包好的jar包名称,可以去掉版本号
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<dependencies>
</dependencies>
<!-- 配置位置在dependencies下面 -->
<build>
<!-- 配置打包名称 -->
<finalName>springboot-test</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>