pom.xml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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.9-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.clickhouse</artifactId>
  12. <packaging>jar</packaging>
  13. <name>canal client adapter clickhouse module for otter ${project.version}</name>
  14. <dependencies>
  15. <dependency>
  16. <groupId>com.alibaba.otter</groupId>
  17. <artifactId>client-adapter.common</artifactId>
  18. <version>${project.version}</version>
  19. <scope>provided</scope>
  20. </dependency>
  21. <dependency>
  22. <groupId>ru.yandex.clickhouse</groupId>
  23. <artifactId>clickhouse-jdbc</artifactId>
  24. <scope>test</scope>
  25. </dependency>
  26. <dependency>
  27. <groupId>junit</groupId>
  28. <artifactId>junit</artifactId>
  29. <scope>test</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.yaml</groupId>
  33. <artifactId>snakeyaml</artifactId>
  34. <scope>test</scope>
  35. </dependency>
  36. </dependencies>
  37. <build>
  38. <plugins>
  39. <plugin>
  40. <groupId>org.apache.maven.plugins</groupId>
  41. <artifactId>maven-assembly-plugin</artifactId>
  42. <version>2.4</version>
  43. <configuration>
  44. <descriptorRefs>
  45. <descriptorRef>jar-with-dependencies</descriptorRef>
  46. </descriptorRefs>
  47. </configuration>
  48. <executions>
  49. <execution>
  50. <id>make-assembly</id>
  51. <phase>package</phase>
  52. <goals>
  53. <goal>single</goal>
  54. </goals>
  55. </execution>
  56. </executions>
  57. </plugin>
  58. <plugin>
  59. <artifactId>maven-antrun-plugin</artifactId>
  60. <executions>
  61. <execution>
  62. <phase>package</phase>
  63. <goals>
  64. <goal>run</goal>
  65. </goals>
  66. <configuration>
  67. <tasks>
  68. <copy todir="${project.basedir}/../launcher/target/classes/clickhouse" overwrite="true">
  69. <fileset dir="${project.basedir}/target/classes/clickhouse" erroronmissingdir="true">
  70. <include name="*.yml" />
  71. </fileset>
  72. </copy>
  73. </tasks>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. </plugins>
  79. </build>
  80. </project>