pom.xml 11 KB

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