pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  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.0.5.RELEASE</spring_version>
  99. <log4j_version>2.17.0</log4j_version>
  100. <maven-jacoco-plugin.version>0.8.3</maven-jacoco-plugin.version>
  101. <maven-surefire.version>2.22.1</maven-surefire.version>
  102. <argline>-server -Xms512m -Xmx1024m -Dfile.encoding=UTF-8
  103. -Djava.net.preferIPv4Stack=true -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m
  104. </argline>
  105. <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
  106. <javax.annotation-api.version>1.3.2</javax.annotation-api.version>
  107. <closeTestReports>true</closeTestReports>
  108. </properties>
  109. <modules>
  110. <module>common</module>
  111. <module>meta</module>
  112. <module>dbsync</module>
  113. <module>filter</module>
  114. <module>driver</module>
  115. <module>parse</module>
  116. <module>sink</module>
  117. <module>store</module>
  118. <module>protocol</module>
  119. <module>instance</module>
  120. <module>server</module>
  121. <module>client</module>
  122. <module>deployer</module>
  123. <module>example</module>
  124. <module>prometheus</module>
  125. <module>admin</module>
  126. <module>client-adapter</module>
  127. <module>connector</module>
  128. </modules>
  129. <dependencyManagement>
  130. <dependencies>
  131. <dependency>
  132. <groupId>org.springframework</groupId>
  133. <artifactId>spring-core</artifactId>
  134. <version>${spring_version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.springframework</groupId>
  138. <artifactId>spring-aop</artifactId>
  139. <version>${spring_version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.springframework</groupId>
  143. <artifactId>spring-context</artifactId>
  144. <version>${spring_version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.springframework</groupId>
  148. <artifactId>spring-jdbc</artifactId>
  149. <version>${spring_version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.springframework</groupId>
  153. <artifactId>spring-orm</artifactId>
  154. <version>${spring_version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.springframework</groupId>
  158. <artifactId>spring-test</artifactId>
  159. <version>${spring_version}</version>
  160. <scope>test</scope>
  161. </dependency>
  162. <!-- external -->
  163. <dependency>
  164. <groupId>commons-lang</groupId>
  165. <artifactId>commons-lang</artifactId>
  166. <version>2.6</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>commons-io</groupId>
  170. <artifactId>commons-io</artifactId>
  171. <version>2.4</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>commons-codec</groupId>
  175. <artifactId>commons-codec</artifactId>
  176. <version>1.9</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.apache.commons</groupId>
  180. <artifactId>commons-compress</artifactId>
  181. <version>1.22</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>com.github.luben</groupId>
  185. <artifactId>zstd-jni</artifactId>
  186. <version>1.5.2-5</version>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.apache.httpcomponents</groupId>
  190. <artifactId>httpclient</artifactId>
  191. <version>4.5.13</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.apache.zookeeper</groupId>
  195. <artifactId>zookeeper</artifactId>
  196. <version>3.4.5</version>
  197. <exclusions>
  198. <exclusion>
  199. <groupId>log4j</groupId>
  200. <artifactId>log4j</artifactId>
  201. </exclusion>
  202. <exclusion>
  203. <groupId>org.slf4j</groupId>
  204. <artifactId>slf4j-log4j12</artifactId>
  205. </exclusion>
  206. <exclusion>
  207. <groupId>org.slf4j</groupId>
  208. <artifactId>slf4j-api</artifactId>
  209. </exclusion>
  210. <exclusion>
  211. <groupId>jline</groupId>
  212. <artifactId>jline</artifactId>
  213. </exclusion>
  214. </exclusions>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.101tec</groupId>
  218. <artifactId>zkclient</artifactId>
  219. <version>0.10</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>com.alibaba.fastjson2</groupId>
  223. <artifactId>fastjson2</artifactId>
  224. <version>2.0.31</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>com.google.guava</groupId>
  228. <artifactId>guava</artifactId>
  229. <version>22.0</version>
  230. </dependency>
  231. <dependency>
  232. <groupId>com.googlecode.aviator</groupId>
  233. <artifactId>aviator</artifactId>
  234. <version>2.2.1</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>oro</groupId>
  238. <artifactId>oro</artifactId>
  239. <version>2.0.8</version>
  240. </dependency>
  241. <dependency>
  242. <groupId>io.netty</groupId>
  243. <artifactId>netty-all</artifactId>
  244. <version>4.1.6.Final</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>com.google.protobuf</groupId>
  248. <artifactId>protobuf-java</artifactId>
  249. <version>3.6.1</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.mybatis</groupId>
  253. <artifactId>mybatis-spring</artifactId>
  254. <version>2.0.4</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>org.mybatis</groupId>
  258. <artifactId>mybatis</artifactId>
  259. <version>3.5.4</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>com.alibaba</groupId>
  263. <artifactId>druid</artifactId>
  264. <version>1.2.17</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>com.lmax</groupId>
  268. <artifactId>disruptor</artifactId>
  269. <version>3.4.2</version>
  270. </dependency>
  271. <!-- log -->
  272. <dependency>
  273. <groupId>ch.qos.logback</groupId>
  274. <artifactId>logback-core</artifactId>
  275. <version>1.1.3</version>
  276. </dependency>
  277. <dependency>
  278. <groupId>ch.qos.logback</groupId>
  279. <artifactId>logback-classic</artifactId>
  280. <version>1.1.3</version>
  281. </dependency>
  282. <dependency>
  283. <groupId>org.slf4j</groupId>
  284. <artifactId>jcl-over-slf4j</artifactId>
  285. <version>1.7.12</version>
  286. </dependency>
  287. <dependency>
  288. <groupId>org.slf4j</groupId>
  289. <artifactId>slf4j-api</artifactId>
  290. <version>1.7.12</version>
  291. </dependency>
  292. <dependency>
  293. <groupId>com.h2database</groupId>
  294. <artifactId>h2</artifactId>
  295. <version>1.4.196</version>
  296. </dependency>
  297. <!-- test dependency -->
  298. <dependency>
  299. <groupId>junit</groupId>
  300. <artifactId>junit</artifactId>
  301. <version>4.12</version>
  302. <scope>test</scope>
  303. </dependency>
  304. <dependency>
  305. <groupId>org.powermock</groupId>
  306. <artifactId>powermock-api-mockito</artifactId>
  307. <version>1.6.5</version>
  308. <scope>test</scope>
  309. </dependency>
  310. <dependency>
  311. <groupId>org.powermock</groupId>
  312. <artifactId>powermock-module-junit4</artifactId>
  313. <version>1.6.5</version>
  314. <scope>test</scope>
  315. </dependency>
  316. <dependency>
  317. <groupId>org.mockito</groupId>
  318. <artifactId>mockito-all</artifactId>
  319. <version>1.10.19</version>
  320. <scope>test</scope>
  321. </dependency>
  322. <dependency>
  323. <groupId>com.diffblue</groupId>
  324. <artifactId>deeptestutils</artifactId>
  325. <version>1.9.0</version>
  326. <scope>test</scope>
  327. </dependency>
  328. <dependency>
  329. <groupId>mysql</groupId>
  330. <artifactId>mysql-connector-java</artifactId>
  331. <version>5.1.48</version>
  332. <!--<scope>test</scope>-->
  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. <!-- Pulsar -->
  345. <dependency>
  346. <groupId>org.apache.pulsar</groupId>
  347. <artifactId>pulsar-client</artifactId>
  348. <version>2.8.1</version>
  349. </dependency>
  350. <dependency>
  351. <groupId>org.apache.pulsar</groupId>
  352. <artifactId>pulsar-client-admin</artifactId>
  353. <version>2.8.1</version>
  354. </dependency>
  355. <dependency>
  356. <groupId>org.apache.logging.log4j</groupId>
  357. <artifactId>log4j-core</artifactId>
  358. <version>${log4j_version}</version>
  359. </dependency>
  360. <dependency>
  361. <groupId>org.apache.logging.log4j</groupId>
  362. <artifactId>log4j-api</artifactId>
  363. <version>${log4j_version}</version>
  364. </dependency>
  365. <dependency>
  366. <groupId>org.apache.logging.log4j</groupId>
  367. <artifactId>log4j-to-slf4j</artifactId>
  368. <version>${log4j_version}</version>
  369. </dependency>
  370. </dependencies>
  371. </dependencyManagement>
  372. <build>
  373. <extensions>
  374. <extension>
  375. <groupId>org.jvnet.wagon-svn</groupId>
  376. <artifactId>wagon-svn</artifactId>
  377. <version>1.9</version>
  378. </extension>
  379. <extension>
  380. <groupId>org.apache.maven.wagon</groupId>
  381. <artifactId>wagon-http-shared</artifactId>
  382. <version>1.0-beta-7</version>
  383. </extension>
  384. </extensions>
  385. <plugins>
  386. <plugin>
  387. <groupId>org.apache.maven.plugins</groupId>
  388. <artifactId>maven-source-plugin</artifactId>
  389. <version>2.4</version>
  390. <executions>
  391. <execution>
  392. <id>attach-sources</id>
  393. <goals>
  394. <goal>jar</goal>
  395. </goals>
  396. </execution>
  397. </executions>
  398. </plugin>
  399. <plugin>
  400. <groupId>org.apache.maven.plugins</groupId>
  401. <artifactId>maven-compiler-plugin</artifactId>
  402. <version>${maven-compiler-plugin.version}</version>
  403. <configuration>
  404. <source>${java_source_version}</source>
  405. <target>${java_target_version}</target>
  406. <encoding>${file_encoding}</encoding>
  407. </configuration>
  408. </plugin>
  409. <plugin>
  410. <groupId>org.jacoco</groupId>
  411. <artifactId>jacoco-maven-plugin</artifactId>
  412. <version>${maven-jacoco-plugin.version}</version>
  413. <executions>
  414. <execution>
  415. <id>jacoco-initialize</id>
  416. <goals>
  417. <goal>prepare-agent</goal>
  418. </goals>
  419. <configuration>
  420. <propertyName>jacocoArgLine</propertyName>
  421. </configuration>
  422. </execution>
  423. <execution>
  424. <id>report-aggregate</id>
  425. <phase>verify</phase>
  426. <goals>
  427. <goal>report-aggregate</goal>
  428. </goals>
  429. </execution>
  430. </executions>
  431. </plugin>
  432. <plugin>
  433. <groupId>org.apache.maven.plugins</groupId>
  434. <artifactId>maven-surefire-plugin</artifactId>
  435. <version>${maven-surefire.version}</version>
  436. <configuration>
  437. <useSystemClassLoader>true</useSystemClassLoader>
  438. <forkMode>once</forkMode>
  439. <argLine>${argline} ${jacocoArgLine}</argLine>
  440. <systemProperties>
  441. <!-- common shared -->
  442. </systemProperties>
  443. <parallel>classes</parallel>
  444. <useUnlimitedThreads>true</useUnlimitedThreads>
  445. <disableXmlReport>${closeTestReports}</disableXmlReport>
  446. </configuration>
  447. </plugin>
  448. <!-- javadoc -->
  449. <plugin>
  450. <groupId>org.apache.maven.plugins</groupId>
  451. <artifactId>maven-javadoc-plugin</artifactId>
  452. <version>2.9.1</version>
  453. <executions>
  454. <execution>
  455. <id>attach-javadocs</id>
  456. <goals>
  457. <goal>jar</goal>
  458. </goals>
  459. </execution>
  460. </executions>
  461. <configuration>
  462. <skip>${javadoc_skip}</skip>
  463. <!-- workaround for https://bugs.openjdk.java.net/browse/JDK-8212233 -->
  464. <javaApiLinks>
  465. <property>
  466. <name>foo</name>
  467. <value>bar</value>
  468. </property>
  469. </javaApiLinks>
  470. <encoding>${file_encoding}</encoding>
  471. <charset>${file_encoding}</charset>
  472. <additionalparam>-Xdoclint:none</additionalparam>
  473. </configuration>
  474. </plugin>
  475. </plugins>
  476. <pluginManagement>
  477. <plugins>
  478. <plugin>
  479. <artifactId>maven-jar-plugin</artifactId>
  480. <version>3.0.2</version>
  481. </plugin>
  482. </plugins>
  483. </pluginManagement>
  484. </build>
  485. <distributionManagement>
  486. <snapshotRepository>
  487. <id>sonatype-nexus-snapshots</id>
  488. <name>Sonatype Nexus Snapshots</name>
  489. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  490. </snapshotRepository>
  491. <repository>
  492. <id>sonatype-nexus-staging</id>
  493. <name>Nexus Release Repository</name>
  494. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  495. </repository>
  496. </distributionManagement>
  497. </project>