更新时间:2021-09-25 00:24:31
您需要自行配置spring-boot-maven-plugin:
You need to configure spring-boot-maven-plugin by yourself:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.1.8.RELEASE</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
显然设置了您自己的插件版本.现在,如果您运行mvn install或mvn软件包,则将生成可执行的JAR.
Obviously set your own plugin version. Now if you run mvn install or mvn package you'll have executable JAR generated.