pom文件,第一步可加载第三方jar包
<dependency>
<groupId>com.xx.jce</groupId>
<artifactId>xx-v5</artifactId>
<version>5.3.3</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/xx.jar</systemPath>
</dependency>
pom文件,第二部将第三方jar包打包到项目内
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.7.5</version>
<configuration>
<!-- 包含systemPath指定的依赖 -->
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>