pom.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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.5-SNAPSHOT</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <groupId>com.alibaba.otter</groupId>
  10. <artifactId>client-adapter.launcher</artifactId>
  11. <packaging>jar</packaging>
  12. <name>canal client adapter launcher module for otter ${project.version}</name>
  13. <dependencyManagement>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.springframework.boot</groupId>
  17. <artifactId>spring-boot-dependencies</artifactId>
  18. <version>2.0.1.RELEASE</version>
  19. <type>pom</type>
  20. <scope>import</scope>
  21. </dependency>
  22. </dependencies>
  23. </dependencyManagement>
  24. <dependencies>
  25. <dependency>
  26. <groupId>com.alibaba.otter</groupId>
  27. <artifactId>client-adapter.common</artifactId>
  28. <version>${project.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.alibaba.otter</groupId>
  32. <artifactId>canal.client</artifactId>
  33. <version>${project.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.yaml</groupId>
  37. <artifactId>snakeyaml</artifactId>
  38. <version>1.19</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-web</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-configuration-processor</artifactId>
  47. <scope>provided</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.cloud</groupId>
  51. <artifactId>spring-cloud-context</artifactId>
  52. <version>2.0.0.RELEASE</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.curator</groupId>
  56. <artifactId>curator-recipes</artifactId>
  57. <version>2.10.0</version>
  58. </dependency>
  59. <!-- 单独引入rocketmq依赖 -->
  60. <dependency>
  61. <groupId>org.apache.rocketmq</groupId>
  62. <artifactId>rocketmq-client</artifactId>
  63. <version>4.5.1</version>
  64. </dependency>
  65. <!-- 单独引入kafka依赖 -->
  66. <dependency>
  67. <groupId>org.apache.kafka</groupId>
  68. <artifactId>kafka-clients</artifactId>
  69. <version>1.1.1</version>
  70. </dependency>
  71. <!-- jdbc -->
  72. <dependency>
  73. <groupId>mysql</groupId>
  74. <artifactId>mysql-connector-java</artifactId>
  75. <version>5.1.40</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.postgresql</groupId>
  79. <artifactId>postgresql</artifactId>
  80. <version>42.1.4</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.oracle</groupId>
  84. <artifactId>ojdbc6</artifactId>
  85. <version>11.2.0.3</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.microsoft.sqlserver</groupId>
  89. <artifactId>mssql-jdbc</artifactId>
  90. <version>7.0.0.jre8</version>
  91. </dependency>
  92. <!-- outer adapter jar with dependencies-->
  93. <dependency>
  94. <groupId>com.alibaba.otter</groupId>
  95. <artifactId>client-adapter.logger</artifactId>
  96. <version>${project.version}</version>
  97. <exclusions>
  98. <exclusion>
  99. <artifactId>*</artifactId>
  100. <groupId>*</groupId>
  101. </exclusion>
  102. </exclusions>
  103. <classifier>jar-with-dependencies</classifier>
  104. <scope>provided</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.alibaba.otter</groupId>
  108. <artifactId>client-adapter.hbase</artifactId>
  109. <version>${project.version}</version>
  110. <exclusions>
  111. <exclusion>
  112. <artifactId>*</artifactId>
  113. <groupId>*</groupId>
  114. </exclusion>
  115. </exclusions>
  116. <classifier>jar-with-dependencies</classifier>
  117. <scope>provided</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.alibaba.otter</groupId>
  121. <artifactId>client-adapter.elasticsearch</artifactId>
  122. <version>${project.version}</version>
  123. <exclusions>
  124. <exclusion>
  125. <artifactId>*</artifactId>
  126. <groupId>*</groupId>
  127. </exclusion>
  128. </exclusions>
  129. <classifier>jar-with-dependencies</classifier>
  130. <scope>provided</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.alibaba.otter</groupId>
  134. <artifactId>client-adapter.rdb</artifactId>
  135. <version>${project.version}</version>
  136. <exclusions>
  137. <exclusion>
  138. <artifactId>*</artifactId>
  139. <groupId>*</groupId>
  140. </exclusion>
  141. </exclusions>
  142. <classifier>jar-with-dependencies</classifier>
  143. <scope>provided</scope>
  144. </dependency>
  145. </dependencies>
  146. <build>
  147. <plugins>
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-dependency-plugin</artifactId>
  151. <version>2.10</version>
  152. <executions>
  153. <execution>
  154. <id>copy-dependencies-to-canal-client-service</id>
  155. <phase>package</phase>
  156. <goals>
  157. <goal>copy-dependencies</goal>
  158. </goals>
  159. <configuration>
  160. <includeClassifiers>jar-with-dependencies</includeClassifiers>
  161. <outputDirectory>${project.basedir}/target/canal-adapter/plugin</outputDirectory>
  162. </configuration>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-assembly-plugin</artifactId>
  169. <version>2.2.1</version>
  170. <executions>
  171. <execution>
  172. <id>assemble</id>
  173. <goals>
  174. <goal>single</goal>
  175. </goals>
  176. <phase>package</phase>
  177. </execution>
  178. </executions>
  179. <configuration>
  180. <appendAssemblyId>false</appendAssemblyId>
  181. <attach>false</attach>
  182. </configuration>
  183. </plugin>
  184. <plugin>
  185. <groupId>org.apache.maven.plugins</groupId>
  186. <artifactId>maven-jar-plugin</artifactId>
  187. <version>3.0.2</version>
  188. <configuration>
  189. <archive>
  190. <manifest>
  191. <addClasspath>true</addClasspath>
  192. <classpathPrefix>lib/</classpathPrefix>
  193. <mainClass>com.alibaba.otter.canal.adapter.launcher.CanalAdapterApplication</mainClass>
  194. </manifest>
  195. </archive>
  196. <excludes>
  197. <exclude>**/*.properties</exclude>
  198. <exclude>**/*.xml</exclude>
  199. <exclude>**/*.yml</exclude>
  200. <exclude>static/**</exclude>
  201. <exclude>templates/**</exclude>
  202. </excludes>
  203. </configuration>
  204. </plugin>
  205. </plugins>
  206. </build>
  207. <profiles>
  208. <profile>
  209. <id>dev</id>
  210. <activation>
  211. <activeByDefault>true</activeByDefault>
  212. <property>
  213. <name>env</name>
  214. <value>!release</value>
  215. </property>
  216. </activation>
  217. <build>
  218. <plugins>
  219. <plugin>
  220. <artifactId>maven-assembly-plugin</artifactId>
  221. <configuration>
  222. <descriptors>
  223. <descriptor>${basedir}/src/main/assembly/dev.xml</descriptor>
  224. </descriptors>
  225. <finalName>canal-adapter</finalName>
  226. <outputDirectory>${project.build.directory}</outputDirectory>
  227. </configuration>
  228. </plugin>
  229. </plugins>
  230. </build>
  231. </profile>
  232. <profile>
  233. <id>release</id>
  234. <activation>
  235. <property>
  236. <name>env</name>
  237. <value>release</value>
  238. </property>
  239. </activation>
  240. <build>
  241. <plugins>
  242. <plugin>
  243. <artifactId>maven-assembly-plugin</artifactId>
  244. <configuration>
  245. <descriptors>
  246. <descriptor>${basedir}/src/main/assembly/release.xml</descriptor>
  247. </descriptors>
  248. <finalName>canal.adapter-${project.version}</finalName>
  249. <outputDirectory>${project.basedir}/../../target</outputDirectory>
  250. </configuration>
  251. </plugin>
  252. </plugins>
  253. </build>
  254. </profile>
  255. </profiles>
  256. </project>