pom.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>canal.client-adapter</artifactId>
  7. <groupId>com.alibaba.otter</groupId>
  8. <version>1.1.8-SNAPSHOT</version>
  9. <relativePath>../pom.xml</relativePath>
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <groupId>com.alibaba.otter</groupId>
  13. <artifactId>client-adapter.clickhouse</artifactId>
  14. <packaging>jar</packaging>
  15. <name>canal client adapter clickhouse module for otter ${project.version}</name>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.alibaba.otter</groupId>
  19. <artifactId>client-adapter.common</artifactId>
  20. <version>${project.version}</version>
  21. <scope>provided</scope>
  22. </dependency>
  23. <dependency>
  24. <groupId>ru.yandex.clickhouse</groupId>
  25. <artifactId>clickhouse-jdbc</artifactId>
  26. <scope>test</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>junit</groupId>
  30. <artifactId>junit</artifactId>
  31. <scope>test</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.yaml</groupId>
  35. <artifactId>snakeyaml</artifactId>
  36. <scope>test</scope>
  37. </dependency>
  38. </dependencies>
  39. <build>
  40. <plugins>
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-assembly-plugin</artifactId>
  44. <version>2.4</version>
  45. <configuration>
  46. <descriptorRefs>
  47. <descriptorRef>jar-with-dependencies</descriptorRef>
  48. </descriptorRefs>
  49. </configuration>
  50. <executions>
  51. <execution>
  52. <id>make-assembly</id>
  53. <phase>package</phase>
  54. <goals>
  55. <goal>single</goal>
  56. </goals>
  57. </execution>
  58. </executions>
  59. </plugin>
  60. <plugin>
  61. <artifactId>maven-antrun-plugin</artifactId>
  62. <executions>
  63. <execution>
  64. <phase>package</phase>
  65. <goals>
  66. <goal>run</goal>
  67. </goals>
  68. <configuration>
  69. <tasks>
  70. <copy todir="${project.basedir}/../launcher/target/classes/clickhouse" overwrite="true">
  71. <fileset dir="${project.basedir}/target/classes/clickhouse" erroronmissingdir="true">
  72. <include name="*.yml" />
  73. </fileset>
  74. </copy>
  75. </tasks>
  76. </configuration>
  77. </execution>
  78. </executions>
  79. </plugin>
  80. </plugins>
  81. </build>
  82. </project>