最近使用sqoop1在java中,使用gtadle编译打包的时候,总是报无法加载org.cloudera.logredactor 1.0.3包,去maven 仓库查找
有依赖地址,但是依赖地址的源仓库找不到这个文件,直接下载jar显示404,怪不得打包下载不进去,然后百度了一下发现这个有github上的项目,故自己下载下来用maven打包发布到本地仓库,然后让gradle走一下maven的本地仓库就好了
build.gradle中repositories加了这个
mavenLocal()
顺便把文件分享下,自己下载下来发布到本地即可,install的时候记得跳过测试,不然可能会出错
mvn install -DskipTests或者mvn install -Dmaven.test.skip=true
csdn下载地址:https://download.csdn.net/download/u011856283/10478286
github地址:https://github.com/cloudera/logredactor/tree/1.0.3