1、项目本地jar,如图
2、在pom.xml中引入本地依赖jar,如图:
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
<version>1.1.0-cdh5.14.4</version>
<scope>system</scope>
<systemPath>${basedir}/lib/hive-exec-1.1.0-cdh5.14.4.jar</systemPath>
</dependency>
3、在项目打包时就可以打入了本地项目依赖jar了。