在resource下建立lib包把需要的包放入里面,之后通过pom进行引入如下
<dependency>
<groupId>inceptor.hive</groupId>
<artifactId>inceptor.driver</artifactId>
<version>6.0.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/inceptor-driver-6.0.2.jar</systemPath>
</dependency>
<!-- 上面的jar包引入后、使用maven install时可能找不到可以使用下面方法配置 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>