使用 idea 打开我们本地的 datax 源码或者下载的源码
下载地址:https://github.com/alibaba/DataX/blob/master/mongodbreader/doc/mongodbreader.md
进行编译,打包上传:
指定mongodbreader模块 以及 它所依赖的模块进行打包 【推荐使用,大约只运行 3 分钟左右】
mvn -U clean package -pl mongodbreader -am assembly:assembly '-Dmaven.test.skip=true'
报错
如果出现下面的报错可能是maven版本不匹配
这里我用的是apache-maven-3.9.8
[ERROR] No plugin found for prefix '.apache.maven.plugins' in the current project and in the plugin groups [org.
apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (D:\Code\maven