首页 > 其他分享 >springboot打包包含lib文件夹的jar包

springboot打包包含lib文件夹的jar包

时间:2022-11-24 18:02:29浏览次数:40  
标签:4.4 springboot lib plugin jar boot test tyilack


1、添加dependency

<dependency>
<groupId>com.tyilack</groupId>
<artifactId>test</artifactId>
<version>4.4</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/test-4.4.jar</systemPath>
</dependency>

2、原有plugin中天下configuration

<includeSystemScope>true</includeSystemScope>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
<mainClass>com.tyilack.assist.App</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>


标签:4.4,springboot,lib,plugin,jar,boot,test,tyilack
From: https://blog.51cto.com/u_15890522/5884429

相关文章