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了。