pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one
  3. or more contributor license agreements. See the NOTICE file
  4. distributed with this work for additional information
  5. regarding copyright ownership. The ASF licenses this file
  6. to you under the Apache License, Version 2.0 (the
  7. "License"); you may not use this file except in compliance
  8. with the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing,
  11. software distributed under the License is distributed on an
  12. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  13. KIND, either express or implied. See the License for the
  14. specific language governing permissions and limitations
  15. under the License.
  16. -->
  17. <project xmlns="http://maven.apache.org/POM/4.0.0"
  18. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <modelVersion>4.0.0</modelVersion>
  21. <groupId>com.cecf.observe</groupId>
  22. <artifactId>ob-platform-stream</artifactId>
  23. <version>1.0-SNAPSHOT</version>
  24. <packaging>jar</packaging>
  25. <name>可观测平台本身产生的数据流</name>
  26. <properties>
  27. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  28. <flink.version>1.19.1</flink.version>
  29. <target.java.version>11</target.java.version>
  30. <maven.compiler.source>${target.java.version}</maven.compiler.source>
  31. <maven.compiler.target>${target.java.version}</maven.compiler.target>
  32. <log4j.version>2.17.1</log4j.version>
  33. </properties>
  34. <repositories>
  35. <repository>
  36. <id>apache.snapshots</id>
  37. <name>Apache Development Snapshot Repository</name>
  38. <url>https://repository.apache.org/content/repositories/snapshots/</url>
  39. <releases>
  40. <enabled>false</enabled>
  41. </releases>
  42. <snapshots>
  43. <enabled>true</enabled>
  44. </snapshots>
  45. </repository>
  46. </repositories>
  47. <dependencies>
  48. <!-- Apache Flink dependencies -->
  49. <!-- These dependencies are provided, because they should not be packaged into the JAR file. -->
  50. <dependency>
  51. <groupId>org.apache.flink</groupId>
  52. <artifactId>flink-streaming-java</artifactId>
  53. <version>${flink.version}</version>
  54. <scope>provided</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.flink</groupId>
  58. <artifactId>flink-table-common</artifactId>
  59. <version>1.19.1</version>
  60. <scope>provided</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.flink</groupId>
  64. <artifactId>flink-connector-kafka</artifactId>
  65. <version>3.2.0-1.19</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.flink</groupId>
  69. <artifactId>flink-connector-clickhouse</artifactId>
  70. <version>1.16.0-SNAPSHOT</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.apache.flink</groupId>
  74. <artifactId>flink-clients</artifactId>
  75. <version>${flink.version}</version>
  76. <scope>provided</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>mysql</groupId>
  80. <artifactId>mysql-connector-java</artifactId>
  81. <version>8.0.33</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.logging.log4j</groupId>
  85. <artifactId>log4j-slf4j-impl</artifactId>
  86. <version>${log4j.version}</version>
  87. <scope>compile</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.apache.logging.log4j</groupId>
  91. <artifactId>log4j-api</artifactId>
  92. <version>${log4j.version}</version>
  93. <scope>compile</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.json</groupId>
  97. <artifactId>json</artifactId>
  98. <version>20231013</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>ru.ivi.opensource</groupId>
  102. <artifactId>flink-clickhouse-sink</artifactId>
  103. <version>1.4.0</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.logging.log4j</groupId>
  107. <artifactId>log4j-core</artifactId>
  108. <version>${log4j.version}</version>
  109. <scope>compile</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.apache.flink</groupId>
  113. <artifactId>flink-table-api-java-bridge</artifactId>
  114. <version>1.19.1</version>
  115. <scope>provided</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.jetbrains</groupId>
  119. <artifactId>annotations</artifactId>
  120. <version>15.0</version>
  121. <scope>compile</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.apache.flink</groupId>
  125. <artifactId>flink-table-api-java</artifactId>
  126. <version>${flink.version}</version>
  127. <scope>provided</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.clickhouse</groupId>
  131. <artifactId>clickhouse-jdbc</artifactId>
  132. <version>0.6.0</version>
  133. <classifier>all</classifier>
  134. </dependency>
  135. </dependencies>
  136. <build>
  137. <plugins>
  138. <!-- Java Compiler -->
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-compiler-plugin</artifactId>
  142. <version>3.1</version>
  143. <configuration>
  144. <source>11</source>
  145. <target>11</target>
  146. </configuration>
  147. </plugin>
  148. <!-- We use the maven-shade plugin to create a fat jar that contains all necessary
  149. dependencies. -->
  150. <!-- Change the value of <mainClass>...</mainClass> if your program entry point changes. -->
  151. <plugin>
  152. <groupId>org.apache.maven.plugins</groupId>
  153. <artifactId>maven-shade-plugin</artifactId>
  154. <version>3.1.1</version>
  155. <executions>
  156. <!-- Run shade goal on package phase -->
  157. <execution>
  158. <phase>package</phase>
  159. <goals>
  160. <goal>shade</goal>
  161. </goals>
  162. <configuration>
  163. <createDependencyReducedPom>false</createDependencyReducedPom>
  164. <artifactSet>
  165. <excludes>
  166. <exclude>org.apache.flink:flink-shaded-force-shading</exclude>
  167. <exclude>com.google.code.findbugs:jsr305</exclude>
  168. <exclude>org.slf4j:*</exclude>
  169. <exclude>org.apache.logging.log4j:*</exclude>
  170. </excludes>
  171. </artifactSet>
  172. <filters>
  173. <filter>
  174. <!-- Do not copy the signatures in the META-INF folder.
  175. Otherwise, this might cause SecurityExceptions when using the JAR. -->
  176. <artifact>*:*</artifact>
  177. <excludes>
  178. <exclude>META-INF/*.SF</exclude>
  179. <exclude>META-INF/*.DSA</exclude>
  180. <exclude>META-INF/*.RSA</exclude>
  181. </excludes>
  182. </filter>
  183. </filters>
  184. <transformers>
  185. <transformer
  186. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  187. <transformer
  188. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  189. <mainClass>com.cecf.observe.TraceStream</mainClass>
  190. </transformer>
  191. </transformers>
  192. </configuration>
  193. </execution>
  194. </executions>
  195. </plugin>
  196. </plugins>
  197. <pluginManagement>
  198. <plugins>
  199. <!-- This improves the out-of-the-box experience in Eclipse by resolving some
  200. warnings. -->
  201. <plugin>
  202. <groupId>org.eclipse.m2e</groupId>
  203. <artifactId>lifecycle-mapping</artifactId>
  204. <version>1.0.0</version>
  205. <configuration>
  206. <lifecycleMappingMetadata>
  207. <pluginExecutions>
  208. <pluginExecution>
  209. <pluginExecutionFilter>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-shade-plugin</artifactId>
  212. <versionRange>[3.1.1,)</versionRange>
  213. <goals>
  214. <goal>shade</goal>
  215. </goals>
  216. </pluginExecutionFilter>
  217. <action>
  218. <ignore/>
  219. </action>
  220. </pluginExecution>
  221. <pluginExecution>
  222. <pluginExecutionFilter>
  223. <groupId>org.apache.maven.plugins</groupId>
  224. <artifactId>maven-compiler-plugin</artifactId>
  225. <versionRange>[3.1,)</versionRange>
  226. <goals>
  227. <goal>testCompile</goal>
  228. <goal>compile</goal>
  229. </goals>
  230. </pluginExecutionFilter>
  231. <action>
  232. <ignore/>
  233. </action>
  234. </pluginExecution>
  235. </pluginExecutions>
  236. </lifecycleMappingMetadata>
  237. </configuration>
  238. </plugin>
  239. </plugins>
  240. </pluginManagement>
  241. </build>
  242. </project>