在pom.xml文件中引入本地jar的方式:
<dependency>
<groupId>org.mine</groupId>
<artifactId>myjar</artifactId>
<version>1.1.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/libs/myjar.jar</systemPath>
</dependency>
在pom.xml文件中使用spring-boot-maven-plugin,配置includeSystemScope为true
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>