pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  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.6</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>http://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.9</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.apache.httpcomponents</groupId>
  185. <artifactId>httpclient</artifactId>
  186. <version>4.5.1</version>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.apache.zookeeper</groupId>
  190. <artifactId>zookeeper</artifactId>
  191. <version>3.4.5</version>
  192. <exclusions>
  193. <exclusion>
  194. <groupId>log4j</groupId>
  195. <artifactId>log4j</artifactId>
  196. </exclusion>
  197. <exclusion>
  198. <groupId>org.slf4j</groupId>
  199. <artifactId>slf4j-log4j12</artifactId>
  200. </exclusion>
  201. <exclusion>
  202. <groupId>org.slf4j</groupId>
  203. <artifactId>slf4j-api</artifactId>
  204. </exclusion>
  205. <exclusion>
  206. <groupId>jline</groupId>
  207. <artifactId>jline</artifactId>
  208. </exclusion>
  209. </exclusions>
  210. </dependency>
  211. <dependency>
  212. <groupId>com.101tec</groupId>
  213. <artifactId>zkclient</artifactId>
  214. <version>0.10</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.alibaba.fastjson2</groupId>
  218. <artifactId>fastjson2</artifactId>
  219. <version>2.0.7</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>com.google.guava</groupId>
  223. <artifactId>guava</artifactId>
  224. <version>22.0</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>com.googlecode.aviator</groupId>
  228. <artifactId>aviator</artifactId>
  229. <version>2.2.1</version>
  230. </dependency>
  231. <dependency>
  232. <groupId>oro</groupId>
  233. <artifactId>oro</artifactId>
  234. <version>2.0.8</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>io.netty</groupId>
  238. <artifactId>netty-all</artifactId>
  239. <version>4.1.6.Final</version>
  240. </dependency>
  241. <dependency>
  242. <groupId>com.google.protobuf</groupId>
  243. <artifactId>protobuf-java</artifactId>
  244. <version>3.6.1</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.mybatis</groupId>
  248. <artifactId>mybatis-spring</artifactId>
  249. <version>2.0.4</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.mybatis</groupId>
  253. <artifactId>mybatis</artifactId>
  254. <version>3.5.4</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>com.alibaba</groupId>
  258. <artifactId>druid</artifactId>
  259. <version>1.2.11</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>com.lmax</groupId>
  263. <artifactId>disruptor</artifactId>
  264. <version>3.4.2</version>
  265. </dependency>
  266. <!-- log -->
  267. <dependency>
  268. <groupId>ch.qos.logback</groupId>
  269. <artifactId>logback-core</artifactId>
  270. <version>1.1.3</version>
  271. </dependency>
  272. <dependency>
  273. <groupId>ch.qos.logback</groupId>
  274. <artifactId>logback-classic</artifactId>
  275. <version>1.1.3</version>
  276. </dependency>
  277. <dependency>
  278. <groupId>org.slf4j</groupId>
  279. <artifactId>jcl-over-slf4j</artifactId>
  280. <version>1.7.12</version>
  281. </dependency>
  282. <dependency>
  283. <groupId>org.slf4j</groupId>
  284. <artifactId>slf4j-api</artifactId>
  285. <version>1.7.12</version>
  286. </dependency>
  287. <dependency>
  288. <groupId>com.h2database</groupId>
  289. <artifactId>h2</artifactId>
  290. <version>1.4.196</version>
  291. </dependency>
  292. <!-- test dependency -->
  293. <dependency>
  294. <groupId>junit</groupId>
  295. <artifactId>junit</artifactId>
  296. <version>4.12</version>
  297. <scope>test</scope>
  298. </dependency>
  299. <dependency>
  300. <groupId>org.powermock</groupId>
  301. <artifactId>powermock-api-mockito</artifactId>
  302. <version>1.6.5</version>
  303. <scope>test</scope>
  304. </dependency>
  305. <dependency>
  306. <groupId>org.powermock</groupId>
  307. <artifactId>powermock-module-junit4</artifactId>
  308. <version>1.6.5</version>
  309. <scope>test</scope>
  310. </dependency>
  311. <dependency>
  312. <groupId>org.mockito</groupId>
  313. <artifactId>mockito-all</artifactId>
  314. <version>1.10.19</version>
  315. <scope>test</scope>
  316. </dependency>
  317. <dependency>
  318. <groupId>com.diffblue</groupId>
  319. <artifactId>deeptestutils</artifactId>
  320. <version>1.9.0</version>
  321. <scope>test</scope>
  322. </dependency>
  323. <dependency>
  324. <groupId>mysql</groupId>
  325. <artifactId>mysql-connector-java</artifactId>
  326. <version>5.1.48</version>
  327. <!--<scope>test</scope>-->
  328. </dependency>
  329. <dependency>
  330. <groupId>com.google.code.findbugs</groupId>
  331. <artifactId>jsr305</artifactId>
  332. <version>3.0.2</version>
  333. </dependency>
  334. <dependency>
  335. <groupId>javax.annotation</groupId>
  336. <artifactId>javax.annotation-api</artifactId>
  337. <version>${javax.annotation-api.version}</version>
  338. </dependency>
  339. <!-- Pulsar -->
  340. <dependency>
  341. <groupId>org.apache.pulsar</groupId>
  342. <artifactId>pulsar-client</artifactId>
  343. <version>2.8.1</version>
  344. </dependency>
  345. <dependency>
  346. <groupId>org.apache.pulsar</groupId>
  347. <artifactId>pulsar-client-admin</artifactId>
  348. <version>2.8.1</version>
  349. </dependency>
  350. <dependency>
  351. <groupId>org.apache.logging.log4j</groupId>
  352. <artifactId>log4j-core</artifactId>
  353. <version>${log4j_version}</version>
  354. </dependency>
  355. <dependency>
  356. <groupId>org.apache.logging.log4j</groupId>
  357. <artifactId>log4j-api</artifactId>
  358. <version>${log4j_version}</version>
  359. </dependency>
  360. <dependency>
  361. <groupId>org.apache.logging.log4j</groupId>
  362. <artifactId>log4j-to-slf4j</artifactId>
  363. <version>${log4j_version}</version>
  364. </dependency>
  365. </dependencies>
  366. </dependencyManagement>
  367. <build>
  368. <extensions>
  369. <extension>
  370. <groupId>org.jvnet.wagon-svn</groupId>
  371. <artifactId>wagon-svn</artifactId>
  372. <version>1.9</version>
  373. </extension>
  374. <extension>
  375. <groupId>org.apache.maven.wagon</groupId>
  376. <artifactId>wagon-http-shared</artifactId>
  377. <version>1.0-beta-7</version>
  378. </extension>
  379. </extensions>
  380. <plugins>
  381. <plugin>
  382. <groupId>org.apache.maven.plugins</groupId>
  383. <artifactId>maven-source-plugin</artifactId>
  384. <version>2.4</version>
  385. <executions>
  386. <execution>
  387. <id>attach-sources</id>
  388. <goals>
  389. <goal>jar</goal>
  390. </goals>
  391. </execution>
  392. </executions>
  393. </plugin>
  394. <plugin>
  395. <groupId>org.apache.maven.plugins</groupId>
  396. <artifactId>maven-compiler-plugin</artifactId>
  397. <version>${maven-compiler-plugin.version}</version>
  398. <configuration>
  399. <source>${java_source_version}</source>
  400. <target>${java_target_version}</target>
  401. <encoding>${file_encoding}</encoding>
  402. </configuration>
  403. </plugin>
  404. <plugin>
  405. <groupId>org.jacoco</groupId>
  406. <artifactId>jacoco-maven-plugin</artifactId>
  407. <version>${maven-jacoco-plugin.version}</version>
  408. <executions>
  409. <execution>
  410. <id>jacoco-initialize</id>
  411. <goals>
  412. <goal>prepare-agent</goal>
  413. </goals>
  414. <configuration>
  415. <propertyName>jacocoArgLine</propertyName>
  416. </configuration>
  417. </execution>
  418. <execution>
  419. <id>report-aggregate</id>
  420. <phase>verify</phase>
  421. <goals>
  422. <goal>report-aggregate</goal>
  423. </goals>
  424. </execution>
  425. </executions>
  426. </plugin>
  427. <plugin>
  428. <groupId>org.apache.maven.plugins</groupId>
  429. <artifactId>maven-surefire-plugin</artifactId>
  430. <version>${maven-surefire.version}</version>
  431. <configuration>
  432. <useSystemClassLoader>true</useSystemClassLoader>
  433. <forkMode>once</forkMode>
  434. <argLine>${argline} ${jacocoArgLine}</argLine>
  435. <systemProperties>
  436. <!-- common shared -->
  437. </systemProperties>
  438. <parallel>classes</parallel>
  439. <useUnlimitedThreads>true</useUnlimitedThreads>
  440. <disableXmlReport>${closeTestReports}</disableXmlReport>
  441. </configuration>
  442. </plugin>
  443. <!-- javadoc -->
  444. <plugin>
  445. <groupId>org.apache.maven.plugins</groupId>
  446. <artifactId>maven-javadoc-plugin</artifactId>
  447. <version>2.9.1</version>
  448. <executions>
  449. <execution>
  450. <id>attach-javadocs</id>
  451. <goals>
  452. <goal>jar</goal>
  453. </goals>
  454. </execution>
  455. </executions>
  456. <configuration>
  457. <skip>${javadoc_skip}</skip>
  458. <!-- workaround for https://bugs.openjdk.java.net/browse/JDK-8212233 -->
  459. <javaApiLinks>
  460. <property>
  461. <name>foo</name>
  462. <value>bar</value>
  463. </property>
  464. </javaApiLinks>
  465. <encoding>${file_encoding}</encoding>
  466. <charset>${file_encoding}</charset>
  467. <additionalparam>-Xdoclint:none</additionalparam>
  468. </configuration>
  469. </plugin>
  470. </plugins>
  471. <pluginManagement>
  472. <plugins>
  473. <plugin>
  474. <artifactId>maven-jar-plugin</artifactId>
  475. <version>3.0.2</version>
  476. </plugin>
  477. </plugins>
  478. </pluginManagement>
  479. </build>
  480. <distributionManagement>
  481. <snapshotRepository>
  482. <id>sonatype-nexus-snapshots</id>
  483. <name>Sonatype Nexus Snapshots</name>
  484. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  485. </snapshotRepository>
  486. <repository>
  487. <id>sonatype-nexus-staging</id>
  488. <name>Nexus Release Repository</name>
  489. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  490. </repository>
  491. </distributionManagement>
  492. </project>