feat:增加launcher-maven-plugin

This commit is contained in:
曾文豪
2023-02-01 10:10:43 +08:00
parent d006788c90
commit 7e94ea54a8
5 changed files with 146 additions and 9 deletions

23
pom.xml
View File

@@ -28,6 +28,7 @@
<module>springboot-message</module>
<module>springboot-encrypt</module>
<module>springboot-annotation</module>
<module>springboot-launcher</module>
</modules>
<properties>
@@ -108,6 +109,12 @@
<version>0.1.9</version>
</dependency>
<dependency>
<groupId>com.tiesheng</groupId>
<artifactId>springboot-launcher</artifactId>
<version>0.0.1</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
@@ -126,6 +133,17 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.tiesheng</groupId>
<artifactId>launcher-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>initScript</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
@@ -134,10 +152,7 @@
<includeSystemScope>true</includeSystemScope>
<!-- 打包后的jar可直接执行 -->
<executable>true</executable>
<embeddedLaunchScriptProperties>
<logFolder>/dev</logFolder>
<logFilename>null</logFilename>
</embeddedLaunchScriptProperties>
<embeddedLaunchScript>${basedir}/target/launchScript</embeddedLaunchScript>
</configuration>
</plugin>
</plugins>