pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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.7</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.4</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. <!-- outer adapter jar with dependencies-->
  75. <dependency>
  76. <groupId>com.alibaba.otter</groupId>
  77. <artifactId>client-adapter.logger</artifactId>
  78. <version>${project.version}</version>
  79. <exclusions>
  80. <exclusion>
  81. <artifactId>*</artifactId>
  82. <groupId>*</groupId>
  83. </exclusion>
  84. </exclusions>
  85. <classifier>jar-with-dependencies</classifier>
  86. <scope>provided</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.alibaba.otter</groupId>
  90. <artifactId>client-adapter.hbase</artifactId>
  91. <version>${project.version}</version>
  92. <exclusions>
  93. <exclusion>
  94. <artifactId>*</artifactId>
  95. <groupId>*</groupId>
  96. </exclusion>
  97. </exclusions>
  98. <classifier>jar-with-dependencies</classifier>
  99. <scope>provided</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.alibaba.otter</groupId>
  103. <artifactId>client-adapter.es6x</artifactId>
  104. <version>${project.version}</version>
  105. <exclusions>
  106. <exclusion>
  107. <artifactId>*</artifactId>
  108. <groupId>*</groupId>
  109. </exclusion>
  110. </exclusions>
  111. <classifier>jar-with-dependencies</classifier>
  112. <scope>provided</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.alibaba.otter</groupId>
  116. <artifactId>client-adapter.es7x</artifactId>
  117. <version>${project.version}</version>
  118. <exclusions>
  119. <exclusion>
  120. <artifactId>*</artifactId>
  121. <groupId>*</groupId>
  122. </exclusion>
  123. </exclusions>
  124. <classifier>jar-with-dependencies</classifier>
  125. <scope>provided</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>com.alibaba.otter</groupId>
  129. <artifactId>client-adapter.es8x</artifactId>
  130. <version>${project.version}</version>
  131. <exclusions>
  132. <exclusion>
  133. <artifactId>*</artifactId>
  134. <groupId>*</groupId>
  135. </exclusion>
  136. </exclusions>
  137. <classifier>jar-with-dependencies</classifier>
  138. <scope>provided</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.alibaba.otter</groupId>
  142. <artifactId>client-adapter.rdb</artifactId>
  143. <version>${project.version}</version>
  144. <exclusions>
  145. <exclusion>
  146. <artifactId>*</artifactId>
  147. <groupId>*</groupId>
  148. </exclusion>
  149. </exclusions>
  150. <classifier>jar-with-dependencies</classifier>
  151. <scope>provided</scope>
  152. </dependency>
  153. <dependency>
  154. <groupId>com.alibaba.otter</groupId>
  155. <artifactId>client-adapter.tablestore</artifactId>
  156. <version>${project.version}</version>
  157. <exclusions>
  158. <exclusion>
  159. <artifactId>*</artifactId>
  160. <groupId>*</groupId>
  161. </exclusion>
  162. </exclusions>
  163. <classifier>jar-with-dependencies</classifier>
  164. <scope>provided</scope>
  165. </dependency>
  166. <!-- connector plugin -->
  167. <dependency>
  168. <groupId>com.alibaba.otter</groupId>
  169. <artifactId>connector.tcp</artifactId>
  170. <version>${project.version}</version>
  171. <exclusions>
  172. <exclusion>
  173. <artifactId>*</artifactId>
  174. <groupId>*</groupId>
  175. </exclusion>
  176. </exclusions>
  177. <classifier>jar-with-dependencies</classifier>
  178. <scope>provided</scope>
  179. </dependency>
  180. <dependency>
  181. <groupId>com.alibaba.otter</groupId>
  182. <artifactId>connector.kafka</artifactId>
  183. <version>${project.version}</version>
  184. <exclusions>
  185. <exclusion>
  186. <artifactId>*</artifactId>
  187. <groupId>*</groupId>
  188. </exclusion>
  189. </exclusions>
  190. <classifier>jar-with-dependencies</classifier>
  191. <scope>provided</scope>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.alibaba.otter</groupId>
  195. <artifactId>connector.rocketmq</artifactId>
  196. <version>${project.version}</version>
  197. <exclusions>
  198. <exclusion>
  199. <artifactId>*</artifactId>
  200. <groupId>*</groupId>
  201. </exclusion>
  202. </exclusions>
  203. <classifier>jar-with-dependencies</classifier>
  204. <scope>provided</scope>
  205. </dependency>
  206. <dependency>
  207. <groupId>com.alibaba.otter</groupId>
  208. <artifactId>connector.rabbitmq</artifactId>
  209. <version>${project.version}</version>
  210. <exclusions>
  211. <exclusion>
  212. <artifactId>*</artifactId>
  213. <groupId>*</groupId>
  214. </exclusion>
  215. </exclusions>
  216. <classifier>jar-with-dependencies</classifier>
  217. <scope>provided</scope>
  218. </dependency>
  219. <dependency>
  220. <groupId>com.alibaba.otter</groupId>
  221. <artifactId>connector.pulsarmq</artifactId>
  222. <version>${project.version}</version>
  223. <exclusions>
  224. <exclusion>
  225. <artifactId>*</artifactId>
  226. <groupId>*</groupId>
  227. </exclusion>
  228. </exclusions>
  229. <classifier>jar-with-dependencies</classifier>
  230. <scope>provided</scope>
  231. </dependency>
  232. </dependencies>
  233. <build>
  234. <plugins>
  235. <plugin>
  236. <groupId>org.apache.maven.plugins</groupId>
  237. <artifactId>maven-dependency-plugin</artifactId>
  238. <version>2.10</version>
  239. <executions>
  240. <execution>
  241. <id>copy-dependencies-to-canal-client-service</id>
  242. <phase>package</phase>
  243. <goals>
  244. <goal>copy-dependencies</goal>
  245. </goals>
  246. <configuration>
  247. <includeClassifiers>jar-with-dependencies</includeClassifiers>
  248. <outputDirectory>${project.basedir}/target/canal-adapter/plugin</outputDirectory>
  249. </configuration>
  250. </execution>
  251. </executions>
  252. </plugin>
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-assembly-plugin</artifactId>
  256. <version>2.2.1</version>
  257. <executions>
  258. <execution>
  259. <id>assemble</id>
  260. <goals>
  261. <goal>single</goal>
  262. </goals>
  263. <phase>package</phase>
  264. </execution>
  265. </executions>
  266. <configuration>
  267. <appendAssemblyId>false</appendAssemblyId>
  268. <attach>false</attach>
  269. </configuration>
  270. </plugin>
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-jar-plugin</artifactId>
  274. <version>3.0.2</version>
  275. <configuration>
  276. <archive>
  277. <manifest>
  278. <addClasspath>true</addClasspath>
  279. <classpathPrefix>lib/</classpathPrefix>
  280. <mainClass>com.alibaba.otter.canal.adapter.launcher.CanalAdapterApplication</mainClass>
  281. </manifest>
  282. </archive>
  283. <excludes>
  284. <exclude>**/*.properties</exclude>
  285. <exclude>**/*.xml</exclude>
  286. <exclude>**/*.yml</exclude>
  287. <exclude>static/**</exclude>
  288. <exclude>templates/**</exclude>
  289. </excludes>
  290. </configuration>
  291. </plugin>
  292. </plugins>
  293. </build>
  294. <profiles>
  295. <profile>
  296. <id>dev</id>
  297. <activation>
  298. <activeByDefault>true</activeByDefault>
  299. <property>
  300. <name>env</name>
  301. <value>!release</value>
  302. </property>
  303. </activation>
  304. <build>
  305. <plugins>
  306. <plugin>
  307. <artifactId>maven-assembly-plugin</artifactId>
  308. <configuration>
  309. <descriptors>
  310. <descriptor>${basedir}/src/main/assembly/dev.xml</descriptor>
  311. </descriptors>
  312. <finalName>canal-adapter</finalName>
  313. <outputDirectory>${project.build.directory}</outputDirectory>
  314. </configuration>
  315. </plugin>
  316. </plugins>
  317. </build>
  318. </profile>
  319. <profile>
  320. <id>release</id>
  321. <activation>
  322. <property>
  323. <name>env</name>
  324. <value>release</value>
  325. </property>
  326. </activation>
  327. <build>
  328. <plugins>
  329. <plugin>
  330. <artifactId>maven-assembly-plugin</artifactId>
  331. <configuration>
  332. <descriptors>
  333. <descriptor>${basedir}/src/main/assembly/release.xml</descriptor>
  334. </descriptors>
  335. <finalName>canal.adapter-${project.version}</finalName>
  336. <outputDirectory>${project.basedir}/../../target</outputDirectory>
  337. </configuration>
  338. </plugin>
  339. </plugins>
  340. </build>
  341. </profile>
  342. </profiles>
  343. </project>