pom.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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.3-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>1.1.3-SNAPSHOT</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.3.0</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>org.postgresql</groupId>
  74. <artifactId>postgresql</artifactId>
  75. <version>42.1.4</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.oracle</groupId>
  79. <artifactId>ojdbc6</artifactId>
  80. <version>11.2.0.3</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.microsoft.sqlserver</groupId>
  84. <artifactId>mssql-jdbc</artifactId>
  85. <version>7.0.0.jre8</version>
  86. </dependency>
  87. <!-- outer adapter jar with dependencies-->
  88. <dependency>
  89. <groupId>com.alibaba.otter</groupId>
  90. <artifactId>client-adapter.logger</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.hbase</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.elasticsearch</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. </dependencies>
  141. <build>
  142. <plugins>
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-dependency-plugin</artifactId>
  146. <version>2.10</version>
  147. <executions>
  148. <execution>
  149. <id>copy-dependencies-to-canal-client-service</id>
  150. <phase>package</phase>
  151. <goals>
  152. <goal>copy-dependencies</goal>
  153. </goals>
  154. <configuration>
  155. <includeClassifiers>jar-with-dependencies</includeClassifiers>
  156. <outputDirectory>${project.basedir}/target/canal-adapter/plugin</outputDirectory>
  157. </configuration>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-assembly-plugin</artifactId>
  164. <version>2.2.1</version>
  165. <executions>
  166. <execution>
  167. <id>assemble</id>
  168. <goals>
  169. <goal>single</goal>
  170. </goals>
  171. <phase>package</phase>
  172. </execution>
  173. </executions>
  174. <configuration>
  175. <appendAssemblyId>false</appendAssemblyId>
  176. <attach>false</attach>
  177. </configuration>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-jar-plugin</artifactId>
  182. <version>3.0.2</version>
  183. <configuration>
  184. <archive>
  185. <manifest>
  186. <addClasspath>true</addClasspath>
  187. <classpathPrefix>lib/</classpathPrefix>
  188. <mainClass>com.alibaba.otter.canal.adapter.launcher.CanalAdapterApplication</mainClass>
  189. </manifest>
  190. </archive>
  191. <excludes>
  192. <exclude>**/*.properties</exclude>
  193. <exclude>**/*.xml</exclude>
  194. <exclude>**/*.yml</exclude>
  195. <exclude>static/**</exclude>
  196. <exclude>templates/**</exclude>
  197. </excludes>
  198. </configuration>
  199. </plugin>
  200. </plugins>
  201. </build>
  202. <profiles>
  203. <profile>
  204. <id>dev</id>
  205. <activation>
  206. <activeByDefault>true</activeByDefault>
  207. <property>
  208. <name>env</name>
  209. <value>!release</value>
  210. </property>
  211. </activation>
  212. <build>
  213. <plugins>
  214. <plugin>
  215. <artifactId>maven-assembly-plugin</artifactId>
  216. <configuration>
  217. <descriptors>
  218. <descriptor>${basedir}/src/main/assembly/dev.xml</descriptor>
  219. </descriptors>
  220. <finalName>canal-adapter</finalName>
  221. <outputDirectory>${project.build.directory}</outputDirectory>
  222. </configuration>
  223. </plugin>
  224. </plugins>
  225. </build>
  226. </profile>
  227. <profile>
  228. <id>release</id>
  229. <activation>
  230. <property>
  231. <name>env</name>
  232. <value>release</value>
  233. </property>
  234. </activation>
  235. <build>
  236. <plugins>
  237. <plugin>
  238. <artifactId>maven-assembly-plugin</artifactId>
  239. <configuration>
  240. <descriptors>
  241. <descriptor>${basedir}/src/main/assembly/release.xml</descriptor>
  242. </descriptors>
  243. <finalName>canal.adapter-${project.version}</finalName>
  244. <outputDirectory>${project.basedir}/../../target</outputDirectory>
  245. </configuration>
  246. </plugin>
  247. </plugins>
  248. </build>
  249. </profile>
  250. </profiles>
  251. </project>