1
0

pom.xml 21 KB

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