pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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. <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>com.alibaba.otter</groupId>
  33. <artifactId>canal.client</artifactId>
  34. <version>${project.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.yaml</groupId>
  38. <artifactId>snakeyaml</artifactId>
  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. </dependency>
  53. <dependency>
  54. <groupId>org.apache.curator</groupId>
  55. <artifactId>curator-recipes</artifactId>
  56. </dependency>
  57. <!-- 单独引入rocketmq依赖 -->
  58. <dependency>
  59. <groupId>org.apache.rocketmq</groupId>
  60. <artifactId>rocketmq-client</artifactId>
  61. </dependency>
  62. <!-- 单独引入kafka依赖 -->
  63. <dependency>
  64. <groupId>org.apache.kafka</groupId>
  65. <artifactId>kafka-clients</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.rabbitmq</groupId>
  69. <artifactId>amqp-client</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.alibaba.mq-amqp</groupId>
  73. <artifactId>mq-amqp-client</artifactId>
  74. </dependency>
  75. <!-- jdbc -->
  76. <dependency>
  77. <groupId>mysql</groupId>
  78. <artifactId>mysql-connector-java</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.postgresql</groupId>
  82. <artifactId>postgresql</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.oracle</groupId>
  86. <artifactId>ojdbc6</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.microsoft.sqlserver</groupId>
  90. <artifactId>mssql-jdbc</artifactId>
  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.es6x</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.es7x</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. <dependency>
  146. <groupId>com.alibaba.otter</groupId>
  147. <artifactId>client-adapter.rdb</artifactId>
  148. <version>${project.version}</version>
  149. <exclusions>
  150. <exclusion>
  151. <artifactId>*</artifactId>
  152. <groupId>*</groupId>
  153. </exclusion>
  154. </exclusions>
  155. <classifier>jar-with-dependencies</classifier>
  156. <scope>provided</scope>
  157. </dependency>
  158. </dependencies>
  159. <build>
  160. <plugins>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-dependency-plugin</artifactId>
  164. <version>2.10</version>
  165. <executions>
  166. <execution>
  167. <id>copy-dependencies-to-canal-client-service</id>
  168. <phase>package</phase>
  169. <goals>
  170. <goal>copy-dependencies</goal>
  171. </goals>
  172. <configuration>
  173. <includeClassifiers>jar-with-dependencies</includeClassifiers>
  174. <outputDirectory>${project.basedir}/target/canal-adapter/plugin</outputDirectory>
  175. </configuration>
  176. </execution>
  177. </executions>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-assembly-plugin</artifactId>
  182. <version>2.2.1</version>
  183. <executions>
  184. <execution>
  185. <id>assemble</id>
  186. <goals>
  187. <goal>single</goal>
  188. </goals>
  189. <phase>package</phase>
  190. </execution>
  191. </executions>
  192. <configuration>
  193. <appendAssemblyId>false</appendAssemblyId>
  194. <attach>false</attach>
  195. </configuration>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-jar-plugin</artifactId>
  200. <version>3.0.2</version>
  201. <configuration>
  202. <archive>
  203. <manifest>
  204. <addClasspath>true</addClasspath>
  205. <classpathPrefix>lib/</classpathPrefix>
  206. <mainClass>com.alibaba.otter.canal.adapter.launcher.CanalAdapterApplication</mainClass>
  207. </manifest>
  208. </archive>
  209. <excludes>
  210. <exclude>**/*.properties</exclude>
  211. <exclude>**/*.xml</exclude>
  212. <exclude>**/*.yml</exclude>
  213. <exclude>static/**</exclude>
  214. <exclude>templates/**</exclude>
  215. </excludes>
  216. </configuration>
  217. </plugin>
  218. </plugins>
  219. </build>
  220. <profiles>
  221. <profile>
  222. <id>dev</id>
  223. <activation>
  224. <activeByDefault>true</activeByDefault>
  225. <property>
  226. <name>env</name>
  227. <value>!release</value>
  228. </property>
  229. </activation>
  230. <build>
  231. <plugins>
  232. <plugin>
  233. <artifactId>maven-assembly-plugin</artifactId>
  234. <configuration>
  235. <descriptors>
  236. <descriptor>${basedir}/src/main/assembly/dev.xml</descriptor>
  237. </descriptors>
  238. <finalName>canal-adapter</finalName>
  239. <outputDirectory>${project.build.directory}</outputDirectory>
  240. </configuration>
  241. </plugin>
  242. </plugins>
  243. </build>
  244. </profile>
  245. <profile>
  246. <id>release</id>
  247. <activation>
  248. <property>
  249. <name>env</name>
  250. <value>release</value>
  251. </property>
  252. </activation>
  253. <build>
  254. <plugins>
  255. <plugin>
  256. <artifactId>maven-assembly-plugin</artifactId>
  257. <configuration>
  258. <descriptors>
  259. <descriptor>${basedir}/src/main/assembly/release.xml</descriptor>
  260. </descriptors>
  261. <finalName>canal.adapter-${project.version}</finalName>
  262. <outputDirectory>${project.basedir}/../../target</outputDirectory>
  263. </configuration>
  264. </plugin>
  265. </plugins>
  266. </build>
  267. </profile>
  268. </profiles>
  269. </project>