添加依赖
<dependency>
<groupId>********</groupId>
<artifactId>********</artifactId>
<version>1.0.0</version>
<!--使用本地jar-->
<scope>system</scope>
<!--jar包地址-->
<systemPath>${project.basedir}/lib/zinglabs-ata.jar</systemPath>
</dependency>
注意:systemPath要改为自己本地的目录,比如
${project.basedir}/src/main/resources/lib/a.jar
打包
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!--关键地方 包含本地jar-->
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
配置中添加
<includeSystemScope>true</includeSystemScope>