一、在CentOS中重新编译打包
安装Maven:
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum -y install apache-maven
下载源码:
git clone https://github.com/alibaba/DataX.git
修改代码后,重新编译打包
mvn clean package -DskipTests assembly:assembly
编译打包后的都放在target下,例如:
/usr/local/DataX/mysqlwriter/target/datax/plugin/writer/mysqlwriter
二、在IDEA中重新打包
重新编译打包时,可以把pom.xml文件中的不用的先注掉,这样编译打包会快一些
来源:https://www.cnblogs.com/kgdxpr/p/12213183.html