Maven打jar包时,打入本地依赖jar

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

猜你喜欢

转载自www.cnblogs.com/MisMe/p/12107166.html
今日推荐