maven编译执行时警告:
[WARNING] 'dependencies.dependency.systemPath' for org.appache.hive:hive-jdbc-uber:jar should not point at files within the project directory, ${basedir}/src/main/resources/lib/hive-jdbc-uber-2.6.5.0-292.jar will be unresolvable by dependent projects @ line 208, column 25
排查原因:
1、在resources目录下创建一个lib文件夹,把jar包放进去。点击jar包右键add as library加进项目中
2、maven的配置${basedir}
<dependency>
<groupId>org.appache.hive</groupId>
<artifactId>hive-jdbc-uber</artifactId>
<version>2.6.5.0-292</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/resources/lib/hive-jdbc-uber-2.6.5.0-292.jar</systemPath>
</dependency>
解决办法:
1、把${basedir}改成${pom.basedir}
2、打入maven仓库,再引用
参考:https://blog.csdn.net/luoluo_lj/article/details/119758095