pom.xml 18 KB

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