pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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">
  3. <parent>
  4. <artifactId>canal.client-adapter</artifactId>
  5. <groupId>com.alibaba.otter</groupId>
  6. <version>1.1.9-SNAPSHOT</version>
  7. <relativePath>../pom.xml</relativePath>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <groupId>com.alibaba.otter</groupId>
  11. <artifactId>client-adapter.launcher</artifactId>
  12. <packaging>jar</packaging>
  13. <name>canal client adapter launcher module for otter ${project.version}</name>
  14. <dependencyManagement>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-dependencies</artifactId>
  19. <version>2.5.15</version>
  20. <type>pom</type>
  21. <scope>import</scope>
  22. </dependency>
  23. </dependencies>
  24. </dependencyManagement>
  25. <dependencies>
  26. <dependency>
  27. <groupId>com.alibaba.otter</groupId>
  28. <artifactId>client-adapter.common</artifactId>
  29. <version>${project.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.yaml</groupId>
  33. <artifactId>snakeyaml</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-web</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-configuration-processor</artifactId>
  42. <scope>provided</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.cloud</groupId>
  46. <artifactId>spring-cloud-context</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.curator</groupId>
  50. <artifactId>curator-recipes</artifactId>
  51. </dependency>
  52. <!-- jdbc -->
  53. <dependency>
  54. <groupId>mysql</groupId>
  55. <artifactId>mysql-connector-java</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.postgresql</groupId>
  59. <artifactId>postgresql</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.oracle.database.jdbc</groupId>
  63. <artifactId>ojdbc6</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.microsoft.sqlserver</groupId>
  67. <artifactId>mssql-jdbc</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.apache.hbase</groupId>
  71. <artifactId>hbase-shaded-client</artifactId>
  72. <scope>runtime</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>ru.yandex.clickhouse</groupId>
  76. <artifactId>clickhouse-jdbc</artifactId>
  77. </dependency>
  78. <!-- outer adapter jar with dependencies-->
  79. <dependency>
  80. <groupId>com.alibaba.otter</groupId>
  81. <artifactId>client-adapter.logger</artifactId>
  82. <version>${project.version}</version>
  83. <exclusions>
  84. <exclusion>
  85. <artifactId>*</artifactId>
  86. <groupId>*</groupId>
  87. </exclusion>
  88. </exclusions>
  89. <classifier>jar-with-dependencies</classifier>
  90. <scope>provided</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.alibaba.otter</groupId>
  94. <artifactId>client-adapter.hbase</artifactId>
  95. <version>${project.version}</version>
  96. <exclusions>
  97. <exclusion>
  98. <artifactId>*</artifactId>
  99. <groupId>*</groupId>
  100. </exclusion>
  101. </exclusions>
  102. <classifier>jar-with-dependencies</classifier>
  103. <scope>provided</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>com.alibaba.otter</groupId>
  107. <artifactId>client-adapter.es6x</artifactId>
  108. <version>${project.version}</version>
  109. <exclusions>
  110. <exclusion>
  111. <artifactId>*</artifactId>
  112. <groupId>*</groupId>
  113. </exclusion>
  114. </exclusions>
  115. <classifier>jar-with-dependencies</classifier>
  116. <scope>provided</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.alibaba.otter</groupId>
  120. <artifactId>client-adapter.es7x</artifactId>
  121. <version>${project.version}</version>
  122. <exclusions>
  123. <exclusion>
  124. <artifactId>*</artifactId>
  125. <groupId>*</groupId>
  126. </exclusion>
  127. </exclusions>
  128. <classifier>jar-with-dependencies</classifier>
  129. <scope>provided</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.alibaba.otter</groupId>
  133. <artifactId>client-adapter.es8x</artifactId>
  134. <version>${project.version}</version>
  135. <exclusions>
  136. <exclusion>
  137. <artifactId>*</artifactId>
  138. <groupId>*</groupId>
  139. </exclusion>
  140. </exclusions>
  141. <classifier>jar-with-dependencies</classifier>
  142. <scope>provided</scope>
  143. </dependency>
  144. <dependency>
  145. <groupId>com.alibaba.otter</groupId>
  146. <artifactId>client-adapter.rdb</artifactId>
  147. <version>${project.version}</version>
  148. <exclusions>
  149. <exclusion>
  150. <artifactId>*</artifactId>
  151. <groupId>*</groupId>
  152. </exclusion>
  153. </exclusions>
  154. <classifier>jar-with-dependencies</classifier>
  155. <scope>provided</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>com.alibaba.otter</groupId>
  159. <artifactId>client-adapter.tablestore</artifactId>
  160. <version>${project.version}</version>
  161. <exclusions>
  162. <exclusion>
  163. <artifactId>*</artifactId>
  164. <groupId>*</groupId>
  165. </exclusion>
  166. </exclusions>
  167. <classifier>jar-with-dependencies</classifier>
  168. <scope>provided</scope>
  169. </dependency>
  170. <dependency>
  171. <groupId>com.alibaba.otter</groupId>
  172. <artifactId>client-adapter.clickhouse</artifactId>
  173. <version>${project.version}</version>
  174. <exclusions>
  175. <exclusion>
  176. <artifactId>*</artifactId>
  177. <groupId>*</groupId>
  178. </exclusion>
  179. </exclusions>
  180. <classifier>jar-with-dependencies</classifier>
  181. <scope>provided</scope>
  182. </dependency>
  183. <!-- connector plugin -->
  184. <dependency>
  185. <groupId>com.alibaba.otter</groupId>
  186. <artifactId>connector.tcp</artifactId>
  187. <version>${project.version}</version>
  188. <exclusions>
  189. <exclusion>
  190. <artifactId>*</artifactId>
  191. <groupId>*</groupId>
  192. </exclusion>
  193. </exclusions>
  194. <classifier>jar-with-dependencies</classifier>
  195. <scope>provided</scope>
  196. </dependency>
  197. <dependency>
  198. <groupId>com.alibaba.otter</groupId>
  199. <artifactId>connector.kafka</artifactId>
  200. <version>${project.version}</version>
  201. <exclusions>
  202. <exclusion>
  203. <artifactId>*</artifactId>
  204. <groupId>*</groupId>
  205. </exclusion>
  206. </exclusions>
  207. <classifier>jar-with-dependencies</classifier>
  208. <scope>provided</scope>
  209. </dependency>
  210. <dependency>
  211. <groupId>com.alibaba.otter</groupId>
  212. <artifactId>connector.rocketmq</artifactId>
  213. <version>${project.version}</version>
  214. <exclusions>
  215. <exclusion>
  216. <artifactId>*</artifactId>
  217. <groupId>*</groupId>
  218. </exclusion>
  219. </exclusions>
  220. <classifier>jar-with-dependencies</classifier>
  221. <scope>provided</scope>
  222. </dependency>
  223. <dependency>
  224. <groupId>com.alibaba.otter</groupId>
  225. <artifactId>connector.rabbitmq</artifactId>
  226. <version>${project.version}</version>
  227. <exclusions>
  228. <exclusion>
  229. <artifactId>*</artifactId>
  230. <groupId>*</groupId>
  231. </exclusion>
  232. </exclusions>
  233. <classifier>jar-with-dependencies</classifier>
  234. <scope>provided</scope>
  235. </dependency>
  236. <dependency>
  237. <groupId>com.alibaba.otter</groupId>
  238. <artifactId>connector.pulsarmq</artifactId>
  239. <version>${project.version}</version>
  240. <exclusions>
  241. <exclusion>
  242. <artifactId>*</artifactId>
  243. <groupId>*</groupId>
  244. </exclusion>
  245. </exclusions>
  246. <classifier>jar-with-dependencies</classifier>
  247. <scope>provided</scope>
  248. </dependency>
  249. </dependencies>
  250. <build>
  251. <plugins>
  252. <plugin>
  253. <groupId>org.apache.maven.plugins</groupId>
  254. <artifactId>maven-dependency-plugin</artifactId>
  255. <version>2.10</version>
  256. <executions>
  257. <execution>
  258. <id>copy-dependencies-to-canal-client-service</id>
  259. <phase>package</phase>
  260. <goals>
  261. <goal>copy-dependencies</goal>
  262. </goals>
  263. <configuration>
  264. <includeClassifiers>jar-with-dependencies</includeClassifiers>
  265. <outputDirectory>${project.basedir}/target/canal-adapter/plugin</outputDirectory>
  266. </configuration>
  267. </execution>
  268. </executions>
  269. </plugin>
  270. <plugin>
  271. <groupId>org.apache.maven.plugins</groupId>
  272. <artifactId>maven-assembly-plugin</artifactId>
  273. <version>2.2.1</version>
  274. <executions>
  275. <execution>
  276. <id>assemble</id>
  277. <goals>
  278. <goal>single</goal>
  279. </goals>
  280. <phase>package</phase>
  281. </execution>
  282. </executions>
  283. <configuration>
  284. <appendAssemblyId>false</appendAssemblyId>
  285. <attach>false</attach>
  286. </configuration>
  287. </plugin>
  288. <plugin>
  289. <groupId>org.apache.maven.plugins</groupId>
  290. <artifactId>maven-jar-plugin</artifactId>
  291. <version>3.0.2</version>
  292. <configuration>
  293. <archive>
  294. <manifest>
  295. <addClasspath>true</addClasspath>
  296. <classpathPrefix>lib/</classpathPrefix>
  297. <mainClass>com.alibaba.otter.canal.adapter.launcher.CanalAdapterApplication</mainClass>
  298. </manifest>
  299. </archive>
  300. <excludes>
  301. <exclude>**/*.properties</exclude>
  302. <exclude>**/*.xml</exclude>
  303. <exclude>**/*.yml</exclude>
  304. <exclude>static/**</exclude>
  305. <exclude>templates/**</exclude>
  306. </excludes>
  307. </configuration>
  308. </plugin>
  309. </plugins>
  310. </build>
  311. <profiles>
  312. <profile>
  313. <id>dev</id>
  314. <activation>
  315. <activeByDefault>true</activeByDefault>
  316. <property>
  317. <name>env</name>
  318. <value>!release</value>
  319. </property>
  320. </activation>
  321. <build>
  322. <plugins>
  323. <plugin>
  324. <artifactId>maven-assembly-plugin</artifactId>
  325. <configuration>
  326. <descriptors>
  327. <descriptor>${basedir}/src/main/assembly/dev.xml</descriptor>
  328. </descriptors>
  329. <finalName>canal-adapter</finalName>
  330. <outputDirectory>${project.build.directory}</outputDirectory>
  331. </configuration>
  332. </plugin>
  333. </plugins>
  334. </build>
  335. </profile>
  336. <profile>
  337. <id>release</id>
  338. <activation>
  339. <property>
  340. <name>env</name>
  341. <value>release</value>
  342. </property>
  343. </activation>
  344. <build>
  345. <plugins>
  346. <plugin>
  347. <artifactId>maven-assembly-plugin</artifactId>
  348. <configuration>
  349. <descriptors>
  350. <descriptor>${basedir}/src/main/assembly/release.xml</descriptor>
  351. </descriptors>
  352. <finalName>canal.adapter-${project.version}</finalName>
  353. <outputDirectory>${project.basedir}/../../target</outputDirectory>
  354. </configuration>
  355. </plugin>
  356. </plugins>
  357. </build>
  358. </profile>
  359. </profiles>
  360. </project>