pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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-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.0.1.RELEASE</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.rdb</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.tablestore</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. <!-- connector plugin -->
  154. <dependency>
  155. <groupId>com.alibaba.otter</groupId>
  156. <artifactId>connector.tcp</artifactId>
  157. <version>${project.version}</version>
  158. <exclusions>
  159. <exclusion>
  160. <artifactId>*</artifactId>
  161. <groupId>*</groupId>
  162. </exclusion>
  163. </exclusions>
  164. <classifier>jar-with-dependencies</classifier>
  165. <scope>provided</scope>
  166. </dependency>
  167. <dependency>
  168. <groupId>com.alibaba.otter</groupId>
  169. <artifactId>connector.kafka</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.rocketmq</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.rabbitmq</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.pulsarmq</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. </dependencies>
  220. <build>
  221. <plugins>
  222. <plugin>
  223. <groupId>org.apache.maven.plugins</groupId>
  224. <artifactId>maven-dependency-plugin</artifactId>
  225. <version>2.10</version>
  226. <executions>
  227. <execution>
  228. <id>copy-dependencies-to-canal-client-service</id>
  229. <phase>package</phase>
  230. <goals>
  231. <goal>copy-dependencies</goal>
  232. </goals>
  233. <configuration>
  234. <includeClassifiers>jar-with-dependencies</includeClassifiers>
  235. <outputDirectory>${project.basedir}/target/canal-adapter/plugin</outputDirectory>
  236. </configuration>
  237. </execution>
  238. </executions>
  239. </plugin>
  240. <plugin>
  241. <groupId>org.apache.maven.plugins</groupId>
  242. <artifactId>maven-assembly-plugin</artifactId>
  243. <version>2.2.1</version>
  244. <executions>
  245. <execution>
  246. <id>assemble</id>
  247. <goals>
  248. <goal>single</goal>
  249. </goals>
  250. <phase>package</phase>
  251. </execution>
  252. </executions>
  253. <configuration>
  254. <appendAssemblyId>false</appendAssemblyId>
  255. <attach>false</attach>
  256. </configuration>
  257. </plugin>
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-jar-plugin</artifactId>
  261. <version>3.0.2</version>
  262. <configuration>
  263. <archive>
  264. <manifest>
  265. <addClasspath>true</addClasspath>
  266. <classpathPrefix>lib/</classpathPrefix>
  267. <mainClass>com.alibaba.otter.canal.adapter.launcher.CanalAdapterApplication</mainClass>
  268. </manifest>
  269. </archive>
  270. <excludes>
  271. <exclude>**/*.properties</exclude>
  272. <exclude>**/*.xml</exclude>
  273. <exclude>**/*.yml</exclude>
  274. <exclude>static/**</exclude>
  275. <exclude>templates/**</exclude>
  276. </excludes>
  277. </configuration>
  278. </plugin>
  279. </plugins>
  280. </build>
  281. <profiles>
  282. <profile>
  283. <id>dev</id>
  284. <activation>
  285. <activeByDefault>true</activeByDefault>
  286. <property>
  287. <name>env</name>
  288. <value>!release</value>
  289. </property>
  290. </activation>
  291. <build>
  292. <plugins>
  293. <plugin>
  294. <artifactId>maven-assembly-plugin</artifactId>
  295. <configuration>
  296. <descriptors>
  297. <descriptor>${basedir}/src/main/assembly/dev.xml</descriptor>
  298. </descriptors>
  299. <finalName>canal-adapter</finalName>
  300. <outputDirectory>${project.build.directory}</outputDirectory>
  301. </configuration>
  302. </plugin>
  303. </plugins>
  304. </build>
  305. </profile>
  306. <profile>
  307. <id>release</id>
  308. <activation>
  309. <property>
  310. <name>env</name>
  311. <value>release</value>
  312. </property>
  313. </activation>
  314. <build>
  315. <plugins>
  316. <plugin>
  317. <artifactId>maven-assembly-plugin</artifactId>
  318. <configuration>
  319. <descriptors>
  320. <descriptor>${basedir}/src/main/assembly/release.xml</descriptor>
  321. </descriptors>
  322. <finalName>canal.adapter-${project.version}</finalName>
  323. <outputDirectory>${project.basedir}/../../target</outputDirectory>
  324. </configuration>
  325. </plugin>
  326. </plugins>
  327. </build>
  328. </profile>
  329. </profiles>
  330. </project>