feat:增加项目启动脚本

This commit is contained in:
曾文豪
2023-01-31 14:27:29 +08:00
parent 3f59d00092
commit 88777898c4
2 changed files with 290 additions and 1 deletions

19
pom.xml
View File

@@ -120,8 +120,25 @@
<version>3.5.1</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- 把外部jar打包进入项目中 -->
<includeSystemScope>true</includeSystemScope>
<!-- 打包后的jar可直接执行 -->
<executable>true</executable>
<embeddedLaunchScript>${basedir}/script/launch.script</embeddedLaunchScript>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>