1.src同级目录新建 lib 文件夹
2. 加入依赖
<dependency>
<groupId>这里随便写</groupId>
<artifactId>这里随便写</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${pom.basedir}/lib/xxxx.jar</systemPath>
</dependency>
- spring boot的打包插件设置
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<configuration>
<!-- 打包时包含第三方jar包-->
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
4.打包