如何在pom.xml文件添加本地jar为maven依赖
解决方法:
将/src/main/lib/impala-frontend-0.1-SNAPSHOT.jar添加为maven依赖
<dependencies>
<dependency>
<groupId>org.apache.impala</groupId>
<artifactId>impala-frontend</artifactId>
<version>cdh5.10.0-release</version>
<scope>system</scope>
<!-- 这里改成你的jar包存放的位置 -->
<systemPath>${project.basedir}/src/main/lib/impala-frontend-0.1-SNAPSHOT.jar</systemPath>
</dependency>
</dependencies>