pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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.6</version>
  7. <relativePath>../pom.xml</relativePath>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <groupId>com.alibaba.otter</groupId>
  11. <artifactId>client-adapter.phoenix</artifactId>
  12. <packaging>jar</packaging>
  13. <name>canal client adapter phoenix module for otter ${project.version}</name>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.apache.phoenix</groupId>
  17. <artifactId>phoenix-core</artifactId>
  18. <version>4.14.1-HBase-1.4</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.apache.hbase</groupId>
  22. <artifactId>hbase-client</artifactId>
  23. <version>1.4.8</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.google.protobuf</groupId>
  27. <artifactId>protobuf-java</artifactId>
  28. <version>2.5.0</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.alibaba.otter</groupId>
  32. <artifactId>client-adapter.common</artifactId>
  33. <version>${project.version}</version>
  34. <scope>provided</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.slf4j</groupId>
  38. <artifactId>slf4j-api</artifactId>
  39. <scope>provided</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>commons-lang</groupId>
  43. <artifactId>commons-lang</artifactId>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>commons-io</groupId>
  48. <artifactId>commons-io</artifactId>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.google.guava</groupId>
  53. <artifactId>guava</artifactId>
  54. <scope>provided</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.alibaba</groupId>
  58. <artifactId>druid</artifactId>
  59. <scope>provided</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>junit</groupId>
  63. <artifactId>junit</artifactId>
  64. <scope>test</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.alibaba.fastjson2</groupId>
  68. <artifactId>fastjson2</artifactId>
  69. <scope>provided</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>mysql</groupId>
  73. <artifactId>mysql-connector-java</artifactId>
  74. <scope>provided</scope>
  75. </dependency>
  76. </dependencies>
  77. <build>
  78. <plugins>
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-assembly-plugin</artifactId>
  82. <version>2.4</version>
  83. <configuration>
  84. <descriptorRefs>
  85. <descriptorRef>jar-with-dependencies</descriptorRef>
  86. </descriptorRefs>
  87. </configuration>
  88. <executions>
  89. <execution>
  90. <id>make-assembly</id>
  91. <phase>package</phase>
  92. <goals>
  93. <goal>single</goal>
  94. </goals>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <plugin>
  99. <artifactId>maven-antrun-plugin</artifactId>
  100. <executions>
  101. <execution>
  102. <phase>package</phase>
  103. <goals>
  104. <goal>run</goal>
  105. </goals>
  106. <configuration>
  107. <!-- <tasks>-->
  108. <!-- <copy todir="${project.basedir}/../launcher/target/classes/phoenix" overwrite="true">-->
  109. <!-- <fileset dir="${project.basedir}/target/classes/phoenix" erroronmissingdir="true">-->
  110. <!-- <include name="*.yml" />-->
  111. <!-- </fileset>-->
  112. <!-- </copy>-->
  113. <!-- </tasks>-->
  114. <tasks>
  115. <copy todir="${project.basedir}/../launcher/target/canal-adapter/conf/phoenix" overwrite="true">
  116. <fileset dir="${project.basedir}/target/classes/phoenix" erroronmissingdir="true">
  117. <include name="*.yml" />
  118. </fileset>
  119. </copy>
  120. <copy todir="${project.basedir}/../launcher/target/canal-adapter/plugin" overwrite="true">
  121. <fileset dir="${project.basedir}/target/" erroronmissingdir="true">
  122. <include name="*with-dependencies.jar" />
  123. </fileset>
  124. </copy>
  125. <copy todir="${project.basedir}/../launcher/target/classes/phoenix" overwrite="true">
  126. <fileset dir="${project.basedir}/target/classes/phoenix" erroronmissingdir="true">
  127. <include name="*.yml" />
  128. </fileset>
  129. </copy>
  130. </tasks>
  131. </configuration>
  132. </execution>
  133. </executions>
  134. </plugin>
  135. </plugins>
  136. </build>
  137. </project>