pom.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>com.alibaba.otter</groupId>
  4. <artifactId>canal</artifactId>
  5. <packaging>pom</packaging>
  6. <name>canal module for otter ${project.version}</name>
  7. <version>1.1.7-SNAPSHOT</version>
  8. <url>https://github.com/alibaba/canal</url>
  9. <parent>
  10. <groupId>org.sonatype.oss</groupId>
  11. <artifactId>oss-parent</artifactId>
  12. <version>7</version>
  13. </parent>
  14. <developers>
  15. <developer>
  16. <name>agapple</name>
  17. <url>http://agapple.iteye.com</url>
  18. <email>jianghang115@gmail.com</email>
  19. <timezone>8</timezone>
  20. </developer>
  21. <developer>
  22. <name>zavakid</name>
  23. <url>http://www.zavakid.com</url>
  24. <email>zava.kid@gmail.com</email>
  25. <timezone>8</timezone>
  26. </developer>
  27. <developer>
  28. <name>in355hz</name>
  29. <url>http://in355hz.iteye.com</url>
  30. <email>in355hz@gmail.com</email>
  31. <timezone>8</timezone>
  32. </developer>
  33. </developers>
  34. <licenses>
  35. <license>
  36. <name>Apache License, Version 2.0</name>
  37. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  38. </license>
  39. </licenses>
  40. <scm>
  41. <url>git@github.com:alibaba/canal.git</url>
  42. <connection>scm:git:git@github.com:alibaba/canal.git</connection>
  43. <developerConnection>scm:git:git@github.com:alibaba/canal.git</developerConnection>
  44. </scm>
  45. <repositories>
  46. <repository>
  47. <id>central</id>
  48. <url>https://repo1.maven.org/maven2</url>
  49. <releases>
  50. <enabled>true</enabled>
  51. </releases>
  52. <snapshots>
  53. <enabled>false</enabled>
  54. </snapshots>
  55. </repository>
  56. <repository>
  57. <id>java.net</id>
  58. <url>https://download.java.net/maven/2/</url>
  59. <releases>
  60. <enabled>true</enabled>
  61. </releases>
  62. <snapshots>
  63. <enabled>false</enabled>
  64. </snapshots>
  65. </repository>
  66. <repository>
  67. <id>sonatype</id>
  68. <name>sonatype</name>
  69. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  70. <releases>
  71. <enabled>false</enabled>
  72. </releases>
  73. <snapshots>
  74. <enabled>true</enabled>
  75. </snapshots>
  76. </repository>
  77. <repository>
  78. <id>sonatype-release</id>
  79. <name>sonatype-release</name>
  80. <url>https://oss.sonatype.org/service/local/repositories/releases/content</url>
  81. <releases>
  82. <enabled>false</enabled>
  83. </releases>
  84. <snapshots>
  85. <enabled>true</enabled>
  86. </snapshots>
  87. </repository>
  88. </repositories>
  89. <properties>
  90. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  91. <!--maven properties-->
  92. <downloadSources>true</downloadSources>
  93. <!-- compiler settings properties -->
  94. <java_source_version>1.8</java_source_version>
  95. <java_target_version>1.8</java_target_version>
  96. <file_encoding>UTF-8</file_encoding>
  97. <javadoc_skip>true</javadoc_skip>
  98. <spring_version>5.3.9</spring_version>
  99. <log4j_version>2.17.0</log4j_version>
  100. <rocketmq_version>4.8.0</rocketmq_version>
  101. <rabbitmq_version>5.5.0</rabbitmq_version>
  102. <mq_amqp_client>1.0.3</mq_amqp_client>
  103. <kafka_version>2.4.0</kafka_version>
  104. <pulsar_version>2.8.1</pulsar_version>
  105. <mysql_driver_version>5.1.48</mysql_driver_version>
  106. <maven-jacoco-plugin.version>0.8.3</maven-jacoco-plugin.version>
  107. <maven-surefire.version>2.22.1</maven-surefire.version>
  108. <argline>-server -Xms512m -Xmx1024m -Dfile.encoding=UTF-8
  109. -Djava.net.preferIPv4Stack=true -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m
  110. </argline>
  111. <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
  112. <javax.annotation-api.version>1.3.2</javax.annotation-api.version>
  113. <closeTestReports>true</closeTestReports>
  114. </properties>
  115. <modules>
  116. <module>common</module>
  117. <module>meta</module>
  118. <module>dbsync</module>
  119. <module>filter</module>
  120. <module>driver</module>
  121. <module>parse</module>
  122. <module>sink</module>
  123. <module>store</module>
  124. <module>protocol</module>
  125. <module>instance</module>
  126. <module>server</module>
  127. <module>client</module>
  128. <module>deployer</module>
  129. <module>example</module>
  130. <module>prometheus</module>
  131. <module>admin</module>
  132. <module>client-adapter</module>
  133. <module>connector</module>
  134. </modules>
  135. <dependencyManagement>
  136. <dependencies>
  137. <dependency>
  138. <groupId>org.springframework</groupId>
  139. <artifactId>spring-core</artifactId>
  140. <version>${spring_version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.springframework</groupId>
  144. <artifactId>spring-aop</artifactId>
  145. <version>${spring_version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.springframework</groupId>
  149. <artifactId>spring-context</artifactId>
  150. <version>${spring_version}</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.springframework</groupId>
  154. <artifactId>spring-jdbc</artifactId>
  155. <version>${spring_version}</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.springframework</groupId>
  159. <artifactId>spring-orm</artifactId>
  160. <version>${spring_version}</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.springframework</groupId>
  164. <artifactId>spring-tx</artifactId>
  165. <version>${spring_version}</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.springframework</groupId>
  169. <artifactId>spring-web</artifactId>
  170. <version>${spring_version}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.springframework</groupId>
  174. <artifactId>spring-webmvc</artifactId>
  175. <version>${spring_version}</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.springframework</groupId>
  179. <artifactId>spring-jcl</artifactId>
  180. <version>${spring_version}</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.springframework</groupId>
  184. <artifactId>spring-expression</artifactId>
  185. <version>${spring_version}</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.springframework</groupId>
  189. <artifactId>spring-beans</artifactId>
  190. <version>${spring_version}</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.springframework</groupId>
  194. <artifactId>spring-test</artifactId>
  195. <version>${spring_version}</version>
  196. <scope>test</scope>
  197. </dependency>
  198. <!-- external -->
  199. <dependency>
  200. <groupId>commons-lang</groupId>
  201. <artifactId>commons-lang</artifactId>
  202. <version>2.6</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.apache.commons</groupId>
  206. <artifactId>commons-lang3</artifactId>
  207. <version>3.7</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>commons-io</groupId>
  211. <artifactId>commons-io</artifactId>
  212. <version>2.4</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>commons-codec</groupId>
  216. <artifactId>commons-codec</artifactId>
  217. <version>1.9</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>commons-beanutils</groupId>
  221. <artifactId>commons-beanutils</artifactId>
  222. <version>1.9.4</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.apache.commons</groupId>
  226. <artifactId>commons-compress</artifactId>
  227. <version>1.22</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>com.github.luben</groupId>
  231. <artifactId>zstd-jni</artifactId>
  232. <version>1.5.2-5</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.apache.httpcomponents</groupId>
  236. <artifactId>httpclient</artifactId>
  237. <version>4.5.13</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>org.apache.zookeeper</groupId>
  241. <artifactId>zookeeper</artifactId>
  242. <version>3.5.6</version>
  243. <exclusions>
  244. <exclusion>
  245. <groupId>log4j</groupId>
  246. <artifactId>log4j</artifactId>
  247. </exclusion>
  248. <exclusion>
  249. <groupId>org.slf4j</groupId>
  250. <artifactId>slf4j-log4j12</artifactId>
  251. </exclusion>
  252. <exclusion>
  253. <groupId>org.slf4j</groupId>
  254. <artifactId>slf4j-api</artifactId>
  255. </exclusion>
  256. <exclusion>
  257. <groupId>jline</groupId>
  258. <artifactId>jline</artifactId>
  259. </exclusion>
  260. <exclusion>
  261. <groupId>io.netty</groupId>
  262. <artifactId>netty-handler</artifactId>
  263. </exclusion>
  264. <exclusion>
  265. <groupId>io.netty</groupId>
  266. <artifactId>netty-transport-native-epoll</artifactId>
  267. </exclusion>
  268. </exclusions>
  269. </dependency>
  270. <dependency>
  271. <groupId>com.101tec</groupId>
  272. <artifactId>zkclient</artifactId>
  273. <version>0.10</version>
  274. </dependency>
  275. <dependency>
  276. <groupId>com.alibaba.fastjson2</groupId>
  277. <artifactId>fastjson2</artifactId>
  278. <version>2.0.31</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>com.google.guava</groupId>
  282. <artifactId>guava</artifactId>
  283. <version>22.0</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>com.googlecode.aviator</groupId>
  287. <artifactId>aviator</artifactId>
  288. <version>2.2.1</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>oro</groupId>
  292. <artifactId>oro</artifactId>
  293. <version>2.0.8</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>io.netty</groupId>
  297. <artifactId>netty-all</artifactId>
  298. <version>4.1.68.Final</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>org.jboss.netty</groupId>
  302. <artifactId>netty</artifactId>
  303. <version>3.2.10.Final</version>
  304. </dependency>
  305. <dependency>
  306. <groupId>com.google.protobuf</groupId>
  307. <artifactId>protobuf-java</artifactId>
  308. <version>3.6.1</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>org.mybatis</groupId>
  312. <artifactId>mybatis-spring</artifactId>
  313. <version>2.0.4</version>
  314. </dependency>
  315. <dependency>
  316. <groupId>org.mybatis</groupId>
  317. <artifactId>mybatis</artifactId>
  318. <version>3.5.6</version>
  319. </dependency>
  320. <dependency>
  321. <groupId>com.alibaba</groupId>
  322. <artifactId>druid</artifactId>
  323. <version>1.2.17</version>
  324. </dependency>
  325. <dependency>
  326. <groupId>com.lmax</groupId>
  327. <artifactId>disruptor</artifactId>
  328. <version>3.4.2</version>
  329. </dependency>
  330. <!-- log -->
  331. <dependency>
  332. <groupId>ch.qos.logback</groupId>
  333. <artifactId>logback-core</artifactId>
  334. <version>1.2.8</version>
  335. </dependency>
  336. <dependency>
  337. <groupId>ch.qos.logback</groupId>
  338. <artifactId>logback-classic</artifactId>
  339. <version>1.2.8</version>
  340. </dependency>
  341. <dependency>
  342. <groupId>org.slf4j</groupId>
  343. <artifactId>jcl-over-slf4j</artifactId>
  344. <version>1.7.12</version>
  345. </dependency>
  346. <dependency>
  347. <groupId>org.slf4j</groupId>
  348. <artifactId>slf4j-api</artifactId>
  349. <version>1.7.12</version>
  350. </dependency>
  351. <dependency>
  352. <groupId>com.h2database</groupId>
  353. <artifactId>h2</artifactId>
  354. <version>2.1.210</version>
  355. </dependency>
  356. <dependency>
  357. <groupId>mysql</groupId>
  358. <artifactId>mysql-connector-java</artifactId>
  359. <version>${mysql_driver_version}</version>
  360. </dependency>
  361. <dependency>
  362. <groupId>com.google.code.findbugs</groupId>
  363. <artifactId>jsr305</artifactId>
  364. <version>3.0.2</version>
  365. </dependency>
  366. <dependency>
  367. <groupId>javax.annotation</groupId>
  368. <artifactId>javax.annotation-api</artifactId>
  369. <version>${javax.annotation-api.version}</version>
  370. </dependency>
  371. <dependency>
  372. <groupId>org.apache.logging.log4j</groupId>
  373. <artifactId>log4j-core</artifactId>
  374. <version>${log4j_version}</version>
  375. </dependency>
  376. <dependency>
  377. <groupId>org.apache.logging.log4j</groupId>
  378. <artifactId>log4j-api</artifactId>
  379. <version>${log4j_version}</version>
  380. </dependency>
  381. <dependency>
  382. <groupId>org.apache.logging.log4j</groupId>
  383. <artifactId>log4j-to-slf4j</artifactId>
  384. <version>${log4j_version}</version>
  385. </dependency>
  386. <!-- test dependency -->
  387. <dependency>
  388. <groupId>junit</groupId>
  389. <artifactId>junit</artifactId>
  390. <version>4.12</version>
  391. <scope>test</scope>
  392. </dependency>
  393. <dependency>
  394. <groupId>org.powermock</groupId>
  395. <artifactId>powermock-api-mockito</artifactId>
  396. <version>1.6.5</version>
  397. <scope>test</scope>
  398. </dependency>
  399. <dependency>
  400. <groupId>org.powermock</groupId>
  401. <artifactId>powermock-module-junit4</artifactId>
  402. <version>1.6.5</version>
  403. <scope>test</scope>
  404. </dependency>
  405. <dependency>
  406. <groupId>org.mockito</groupId>
  407. <artifactId>mockito-all</artifactId>
  408. <version>1.10.19</version>
  409. <scope>test</scope>
  410. </dependency>
  411. <dependency>
  412. <groupId>com.diffblue</groupId>
  413. <artifactId>deeptestutils</artifactId>
  414. <version>1.9.0</version>
  415. <scope>test</scope>
  416. </dependency>
  417. </dependencies>
  418. </dependencyManagement>
  419. <build>
  420. <extensions>
  421. <extension>
  422. <groupId>org.jvnet.wagon-svn</groupId>
  423. <artifactId>wagon-svn</artifactId>
  424. <version>1.9</version>
  425. </extension>
  426. <extension>
  427. <groupId>org.apache.maven.wagon</groupId>
  428. <artifactId>wagon-http-shared</artifactId>
  429. <version>1.0-beta-7</version>
  430. </extension>
  431. </extensions>
  432. <plugins>
  433. <plugin>
  434. <groupId>org.apache.maven.plugins</groupId>
  435. <artifactId>maven-source-plugin</artifactId>
  436. <version>2.4</version>
  437. <executions>
  438. <execution>
  439. <id>attach-sources</id>
  440. <goals>
  441. <goal>jar</goal>
  442. </goals>
  443. </execution>
  444. </executions>
  445. </plugin>
  446. <plugin>
  447. <groupId>org.apache.maven.plugins</groupId>
  448. <artifactId>maven-compiler-plugin</artifactId>
  449. <version>${maven-compiler-plugin.version}</version>
  450. <configuration>
  451. <source>${java_source_version}</source>
  452. <target>${java_target_version}</target>
  453. <encoding>${file_encoding}</encoding>
  454. </configuration>
  455. </plugin>
  456. <plugin>
  457. <groupId>org.jacoco</groupId>
  458. <artifactId>jacoco-maven-plugin</artifactId>
  459. <version>${maven-jacoco-plugin.version}</version>
  460. <executions>
  461. <execution>
  462. <id>jacoco-initialize</id>
  463. <goals>
  464. <goal>prepare-agent</goal>
  465. </goals>
  466. <configuration>
  467. <propertyName>jacocoArgLine</propertyName>
  468. </configuration>
  469. </execution>
  470. <execution>
  471. <id>report-aggregate</id>
  472. <phase>verify</phase>
  473. <goals>
  474. <goal>report-aggregate</goal>
  475. </goals>
  476. </execution>
  477. </executions>
  478. </plugin>
  479. <plugin>
  480. <groupId>org.apache.maven.plugins</groupId>
  481. <artifactId>maven-surefire-plugin</artifactId>
  482. <version>${maven-surefire.version}</version>
  483. <configuration>
  484. <useSystemClassLoader>true</useSystemClassLoader>
  485. <forkMode>once</forkMode>
  486. <argLine>${argline} ${jacocoArgLine}</argLine>
  487. <systemProperties>
  488. <!-- common shared -->
  489. </systemProperties>
  490. <parallel>classes</parallel>
  491. <useUnlimitedThreads>true</useUnlimitedThreads>
  492. <disableXmlReport>${closeTestReports}</disableXmlReport>
  493. </configuration>
  494. </plugin>
  495. <!-- javadoc -->
  496. <plugin>
  497. <groupId>org.apache.maven.plugins</groupId>
  498. <artifactId>maven-javadoc-plugin</artifactId>
  499. <version>2.9.1</version>
  500. <executions>
  501. <execution>
  502. <id>attach-javadocs</id>
  503. <goals>
  504. <goal>jar</goal>
  505. </goals>
  506. </execution>
  507. </executions>
  508. <configuration>
  509. <skip>${javadoc_skip}</skip>
  510. <!-- workaround for https://bugs.openjdk.java.net/browse/JDK-8212233 -->
  511. <javaApiLinks>
  512. <property>
  513. <name>foo</name>
  514. <value>bar</value>
  515. </property>
  516. </javaApiLinks>
  517. <encoding>${file_encoding}</encoding>
  518. <charset>${file_encoding}</charset>
  519. <additionalparam>-Xdoclint:none</additionalparam>
  520. </configuration>
  521. </plugin>
  522. </plugins>
  523. <pluginManagement>
  524. <plugins>
  525. <plugin>
  526. <artifactId>maven-jar-plugin</artifactId>
  527. <version>3.0.2</version>
  528. </plugin>
  529. </plugins>
  530. </pluginManagement>
  531. </build>
  532. <distributionManagement>
  533. <snapshotRepository>
  534. <id>sonatype-nexus-snapshots</id>
  535. <name>Sonatype Nexus Snapshots</name>
  536. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  537. </snapshotRepository>
  538. <repository>
  539. <id>sonatype-nexus-staging</id>
  540. <name>Nexus Release Repository</name>
  541. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  542. </repository>
  543. </distributionManagement>
  544. </project>