目录
1. 编译背景
- 1. 编译背景
- 2. 准备工作
- 3. 源码的修改
- 3.1 client-adapter\pom.xml
- 3.2 client-adapter\rdb\pom.xml
- 3.3 client-adapter\launcher\pom.xml
- 3.4 pom.xml
- 4. 编译打包
有的时候我们需要对源码进行修改,所有就需要自己编译jar包
2. 准备工作- 从下载地址进行下载
- 解压
- 用IDEA打开
修改部分
com.oracle.database.jdbc
ojdbc6
11.2.0.4
3.2 client-adapter\rdb\pom.xml
修改部分
com.oracle.database.jdbc
ojdbc6
test
3.3 client-adapter\launcher\pom.xml
修改部分
com.oracle.database.jdbc
ojdbc6
3.4 pom.xml
修改部分
com.google.guava
guava
18.0
4. 编译打包
如果出错,可尝试多次运行命令
C:\Users\dell\Desktop\canal-canal-1.1.5>
C:\Users\dell\Desktop\canal-canal-1.1.5>mvn clean install -Dmaven.test.skip=true -Denv=release
C:\Users\dell\Desktop\canal-canal-1.1.5>
再右键点击pom.xml —> maven --> Reload project
canal的jar包位于target目录下