pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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-agent-stream</artifactId>
  23. <version>1.0-SNAPSHOT</version>
  24. <packaging>jar</packaging>
  25. <name>agent采集数据的处理程序</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>com.twitter</groupId>
  58. <artifactId>chill-protobuf</artifactId>
  59. <version>0.7.6</version>
  60. <!-- exclusions for dependency conversion -->
  61. <exclusions>
  62. <exclusion>
  63. <groupId>com.esotericsoftware.kryo</groupId>
  64. <artifactId>kryo</artifactId>
  65. </exclusion>
  66. </exclusions>
  67. </dependency>
  68. <!-- We need protobuf for chill-protobuf -->
  69. <dependency>
  70. <groupId>com.google.protobuf</groupId>
  71. <artifactId>protobuf-java</artifactId>
  72. <version>3.23.4</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>io.opentelemetry.proto</groupId>
  76. <artifactId>opentelemetry-proto</artifactId>
  77. <version>1.0.0-alpha</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.apache.flink</groupId>
  81. <artifactId>flink-connector-kafka</artifactId>
  82. <version>3.2.0-1.19</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.apache.flink</groupId>
  86. <artifactId>flink-clients</artifactId>
  87. <version>${flink.version}</version>
  88. <scope>provided</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>mysql</groupId>
  92. <artifactId>mysql-connector-java</artifactId>
  93. <version>8.0.33</version>
  94. </dependency>
  95. <!-- Add connector dependencies here. They must be in the default scope (compile). -->
  96. <!-- Example:
  97. <dependency>
  98. <groupId>org.apache.flink</groupId>
  99. <artifactId>flink-connector-kafka</artifactId>
  100. <version>${flink.version}</version>
  101. </dependency>
  102. -->
  103. <!-- Add logging framework, to produce console output when running in the IDE. -->
  104. <!-- These dependencies are excluded from the application JAR by default. -->
  105. <dependency>
  106. <groupId>org.apache.logging.log4j</groupId>
  107. <artifactId>log4j-slf4j-impl</artifactId>
  108. <version>${log4j.version}</version>
  109. <scope>compile</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.apache.logging.log4j</groupId>
  113. <artifactId>log4j-api</artifactId>
  114. <version>${log4j.version}</version>
  115. <scope>compile</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.json</groupId>
  119. <artifactId>json</artifactId>
  120. <version>20230227</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>ru.ivi.opensource</groupId>
  124. <artifactId>flink-clickhouse-sink</artifactId>
  125. <version>1.4.0</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.apache.logging.log4j</groupId>
  129. <artifactId>log4j-core</artifactId>
  130. <version>${log4j.version}</version>
  131. <scope>compile</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.jetbrains</groupId>
  135. <artifactId>annotations</artifactId>
  136. <version>15.0</version>
  137. <scope>compile</scope>
  138. </dependency>
  139. </dependencies>
  140. <build>
  141. <plugins>
  142. <!-- Java Compiler -->
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-compiler-plugin</artifactId>
  146. <version>3.1</version>
  147. <configuration>
  148. <source>${target.java.version}</source>
  149. <target>${target.java.version}</target>
  150. </configuration>
  151. </plugin>
  152. <!-- We use the maven-shade plugin to create a fat jar that contains all necessary
  153. dependencies. -->
  154. <!-- Change the value of <mainClass>...</mainClass> if your program entry point changes. -->
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-shade-plugin</artifactId>
  158. <version>3.1.1</version>
  159. <executions>
  160. <!-- Run shade goal on package phase -->
  161. <execution>
  162. <phase>package</phase>
  163. <goals>
  164. <goal>shade</goal>
  165. </goals>
  166. <configuration>
  167. <createDependencyReducedPom>false</createDependencyReducedPom>
  168. <artifactSet>
  169. <excludes>
  170. <exclude>org.apache.flink:flink-shaded-force-shading</exclude>
  171. <exclude>com.google.code.findbugs:jsr305</exclude>
  172. <exclude>org.slf4j:*</exclude>
  173. <exclude>org.apache.logging.log4j:*</exclude>
  174. </excludes>
  175. </artifactSet>
  176. <filters>
  177. <filter>
  178. <!-- Do not copy the signatures in the META-INF folder.
  179. Otherwise, this might cause SecurityExceptions when using the JAR. -->
  180. <artifact>*:*</artifact>
  181. <excludes>
  182. <exclude>META-INF/*.SF</exclude>
  183. <exclude>META-INF/*.DSA</exclude>
  184. <exclude>META-INF/*.RSA</exclude>
  185. </excludes>
  186. </filter>
  187. </filters>
  188. <transformers>
  189. <transformer
  190. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  191. <transformer
  192. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  193. <mainClass>com.cecf.observe.TraceStream</mainClass>
  194. </transformer>
  195. </transformers>
  196. </configuration>
  197. </execution>
  198. </executions>
  199. </plugin>
  200. </plugins>
  201. <pluginManagement>
  202. <plugins>
  203. <!-- This improves the out-of-the-box experience in Eclipse by resolving some
  204. warnings. -->
  205. <plugin>
  206. <groupId>org.eclipse.m2e</groupId>
  207. <artifactId>lifecycle-mapping</artifactId>
  208. <version>1.0.0</version>
  209. <configuration>
  210. <lifecycleMappingMetadata>
  211. <pluginExecutions>
  212. <pluginExecution>
  213. <pluginExecutionFilter>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-shade-plugin</artifactId>
  216. <versionRange>[3.1.1,)</versionRange>
  217. <goals>
  218. <goal>shade</goal>
  219. </goals>
  220. </pluginExecutionFilter>
  221. <action>
  222. <ignore/>
  223. </action>
  224. </pluginExecution>
  225. <pluginExecution>
  226. <pluginExecutionFilter>
  227. <groupId>org.apache.maven.plugins</groupId>
  228. <artifactId>maven-compiler-plugin</artifactId>
  229. <versionRange>[3.1,)</versionRange>
  230. <goals>
  231. <goal>testCompile</goal>
  232. <goal>compile</goal>
  233. </goals>
  234. </pluginExecutionFilter>
  235. <action>
  236. <ignore/>
  237. </action>
  238. </pluginExecution>
  239. </pluginExecutions>
  240. </lifecycleMappingMetadata>
  241. </configuration>
  242. </plugin>
  243. </plugins>
  244. </pluginManagement>
  245. </build>
  246. </project>