alibaba / DataX

DataX是阿里云DataWorks数据集成的开源版本。
Other
15.89k stars 5.42k forks source link

odps依赖包确实导致无法编译 #95

Closed venxo closed 2 years ago

venxo commented 6 years ago

现在编译datax odps插件模块会报 [ERROR] Failed to execute goal on project odpsreader: Could not resolve dependencies for project com.alibaba.datax:odpsreader:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.alibaba.datax:datax-common:jar:0.0.1-SNAPSHOT, com.alibaba.external:bouncycastle.provider:jar:1.38-jdk15: Could not find artifact com.alibaba.datax:datax-common:jar:0.0.1-SNAPSHOT in dtwave (http://repo2.dtwave-inc.com/repository/public/) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

比较过之前odps-sdk-core-0.19.3-public.pom的的依赖是

org.bouncycastle bcprov-jdk15on 1.52

现在是

com.alibaba.external bouncycastle.provider 1.38-jdk15

后来的这个依赖应该是阿里内部jar,外部仓库无法加载这个jar

LevelUpUpUp commented 6 years ago

同事也遇到类型的问题了

zhuliuw commented 6 years ago

我也遇到了

zhuliuw commented 6 years ago

如何解决?

venxo commented 6 years ago

把odps的的maven依赖改成

com.aliyun.odps odps-sdk-core 0.20.7-public

就可以了

TrafalgarLuo commented 2 years ago

编译命令: mvn clean package -U -DskipTests assembly:assembly

使用最新代码可以正常编译,注意使用 jdk >= 1.8