[Source code analysis] canal1.1.5 Mac debugging environment setup

Canal's source code build tool uses maven. It is relatively familiar to domestic programmers, because I found that the build tools used by foreign developed frameworks such as kafka, spring, and elastic search are all gradle.

1. Download the source code

git address

https://github.com/alibaba/canal

Second, use idea to build

Paste in the git address and start downloading

 

Three, execute the build command

Execute in the root directory of the canal project

Root directory location

mvn clean install -Dmaven.test.skip=true

The premise is that maven must be installed on your computer, which is a must for Java programmers. If you don’t remember to install it

Fourth, start

Find startup class

canal started successfully! ! ! !

Guess you like

Origin blog.csdn.net/weixin_39394909/article/details/108531801