pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.winhc.bigdata</groupId>
  7. <artifactId>winhc_flink</artifactId>
  8. <packaging>jar</packaging>
  9. <version>1.0</version>
  10. <properties>
  11. <flink.version>1.12.3</flink.version>
  12. <scala.version>2.11.12</scala.version>
  13. <scala.binary.version>2.11</scala.binary.version>
  14. <log4j.version>2.12.1</log4j.version>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <maven.compiler.source>8</maven.compiler.source>
  17. <maven.compiler.target>8</maven.compiler.target>
  18. <connector.version>1.13-vvr-4.0.7</connector.version>
  19. <!-- <scope>provided</scope>-->
  20. <scope>provided</scope>
  21. </properties>
  22. <repositories>
  23. <repository>
  24. <id>oss.sonatype.org-snapshot</id>
  25. <name>OSS Sonatype Snapshot Repository</name>
  26. <url>http://oss.sonatype.org/content/repositories/snapshots</url>
  27. <releases>
  28. <enabled>false</enabled>
  29. </releases>
  30. <snapshots>
  31. <enabled>true</enabled>
  32. </snapshots>
  33. </repository>
  34. <repository>
  35. <id>apache.snapshots</id>
  36. <name>Apache Development Snapshot Repository</name>
  37. <url>https://repository.apache.org/content/repositories/snapshots/</url>
  38. <releases>
  39. <enabled>false</enabled>
  40. </releases>
  41. <snapshots>
  42. <enabled>true</enabled>
  43. </snapshots>
  44. </repository>
  45. </repositories>
  46. <dependencies>
  47. <!-- Apache Flink dependencies -->
  48. <!-- These dependencies are provided, because they should not be packaged into the JAR file. -->
  49. <!-- <dependency>-->
  50. <!-- <groupId>org.apache.flink</groupId>-->
  51. <!-- <artifactId>flink-avro</artifactId>-->
  52. <!-- <version>${flink.version}</version>-->
  53. <!-- <scope>${scope}</scope>-->
  54. <!-- </dependency>-->
  55. <!-- <dependency>-->
  56. <!-- <groupId>org.apache.flink</groupId>-->
  57. <!-- <artifactId>flink-runtime-web_${scala.binary.version}</artifactId>-->
  58. <!-- <version>${flink.version}</version>-->
  59. <!-- <scope>${scope}</scope>-->
  60. <!-- </dependency>-->
  61. <dependency>
  62. <groupId>org.apache.flink</groupId>
  63. <artifactId>flink-scala_${scala.binary.version}</artifactId>
  64. <version>${flink.version}</version>
  65. <scope>${scope}</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.flink</groupId>
  69. <artifactId>flink-streaming-scala_${scala.binary.version}</artifactId>
  70. <version>${flink.version}</version>
  71. <scope>${scope}</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.apache.flink</groupId>
  75. <artifactId>flink-clients_${scala.binary.version}</artifactId>
  76. <version>${flink.version}</version>
  77. <scope>${scope}</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.apache.flink</groupId>
  81. <artifactId>flink-table-api-scala-bridge_${scala.binary.version}</artifactId>
  82. <version>${flink.version}</version>
  83. <scope>${scope}</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.flink</groupId>
  87. <artifactId>flink-table-planner-blink_${scala.binary.version}</artifactId>
  88. <version>${flink.version}</version>
  89. <scope>${scope}</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.flink</groupId>
  93. <artifactId>flink-table-common</artifactId>
  94. <version>${flink.version}</version>
  95. <scope>${scope}</scope>
  96. </dependency>
  97. <!-- Scala Library, provided by Flink as well. -->
  98. <dependency>
  99. <groupId>org.scala-lang</groupId>
  100. <artifactId>scala-library</artifactId>
  101. <version>${scala.version}</version>
  102. <scope>${scope}</scope>
  103. </dependency>
  104. <!-- Add connector dependencies here. They must be in the default scope (compile). -->
  105. <!-- add vvr dependencies -->
  106. <dependency>
  107. <groupId>com.alibaba.ververica</groupId>
  108. <artifactId>ververica-connector-odps</artifactId>
  109. <version>${connector.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.alibaba.ververica</groupId>
  113. <artifactId>ververica-connector-hologres</artifactId>
  114. <version>${connector.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.alibaba.ververica</groupId>
  118. <artifactId>ververica-connector-elasticsearch6</artifactId>
  119. <version>${connector.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.alibaba.ververica</groupId>
  123. <artifactId>ververica-connector-cloudhbase</artifactId>
  124. <version>${connector.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.alibaba.ververica</groupId>
  128. <artifactId>ververica-connector-kafka</artifactId>
  129. <version>${connector.version}</version>
  130. </dependency>
  131. <!-- Add logging framework, to produce console output when running in the IDE. -->
  132. <!-- These dependencies are excluded from the application JAR by default. -->
  133. <dependency>
  134. <groupId>org.apache.logging.log4j</groupId>
  135. <artifactId>log4j-slf4j-impl</artifactId>
  136. <version>${log4j.version}</version>
  137. <scope>runtime</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.logging.log4j</groupId>
  141. <artifactId>log4j-api</artifactId>
  142. <version>${log4j.version}</version>
  143. <scope>runtime</scope>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.apache.logging.log4j</groupId>
  147. <artifactId>log4j-core</artifactId>
  148. <version>${log4j.version}</version>
  149. <scope>runtime</scope>
  150. </dependency>
  151. <!-- add other dependencies -->
  152. <!-- https://mvnrepository.com/artifact/org.apache.avro/avro -->
  153. <dependency>
  154. <groupId>org.apache.avro</groupId>
  155. <artifactId>avro</artifactId>
  156. <version>1.10.2</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.yaml</groupId>
  160. <artifactId>snakeyaml</artifactId>
  161. <version>1.17</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.alibaba</groupId>
  165. <artifactId>dns-cache-manipulator</artifactId>
  166. <version>1.5.1</version>
  167. </dependency>
  168. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  169. <dependency>
  170. <groupId>com.alibaba</groupId>
  171. <artifactId>fastjson</artifactId>
  172. <version>1.2.78</version>
  173. </dependency>
  174. <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
  175. <dependency>
  176. <groupId>org.projectlombok</groupId>
  177. <artifactId>lombok</artifactId>
  178. <version>1.18.20</version>
  179. <scope>provided</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>cn.hutool</groupId>
  183. <artifactId>hutool-all</artifactId>
  184. <version>5.7.10</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.json4s</groupId>
  188. <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
  189. <version>3.7.0-M7</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>com.github.java-json-tools</groupId>
  193. <artifactId>json-schema-validator</artifactId>
  194. <version>2.2.14</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.flink</groupId>
  198. <artifactId>flink-test-utils_${scala.binary.version}</artifactId>
  199. <version>${flink.version}</version>
  200. <scope>test</scope>
  201. </dependency>
  202. <dependency>
  203. <groupId>org.apache.flink</groupId>
  204. <artifactId>flink-runtime_${scala.binary.version}</artifactId>
  205. <version>${flink.version}</version>
  206. <scope>test</scope>
  207. <classifier>tests</classifier>
  208. </dependency>
  209. <dependency>
  210. <groupId>com.alibaba.hologres</groupId>
  211. <artifactId>holo-client</artifactId>
  212. <version>1.2.16.3</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.apache.flink</groupId>
  216. <artifactId>flink-connector-kafka_2.12</artifactId>
  217. <version>1.12.0</version>
  218. </dependency>
  219. </dependencies>
  220. <build>
  221. <finalName>winhc_flink-${project.version}</finalName>
  222. <plugins>
  223. <!-- We use the maven-shade plugin to create a fat jar that contains all necessary dependencies. -->
  224. <!-- Change the value of <mainClass>...</mainClass> if your program entry point changes. -->
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-shade-plugin</artifactId>
  228. <version>3.1.1</version>
  229. <executions>
  230. <!-- Run shade goal on package phase -->
  231. <execution>
  232. <phase>package</phase>
  233. <goals>
  234. <goal>shade</goal>
  235. </goals>
  236. <configuration>
  237. <artifactSet>
  238. <excludes>
  239. <exclude>org.apache.flink:force-shading</exclude>
  240. <exclude>com.google.code.findbugs:jsr305</exclude>
  241. <exclude>org.slf4j:*</exclude>
  242. <exclude>org.apache.logging.log4j:*</exclude>
  243. </excludes>
  244. </artifactSet>
  245. <filters>
  246. <filter>
  247. <!-- Do not copy the signatures in the META-INF folder.
  248. Otherwise, this might cause SecurityExceptions when using the JAR. -->
  249. <artifact>*:*</artifact>
  250. <excludes>
  251. <exclude>META-INF/*.SF</exclude>
  252. <exclude>META-INF/*.DSA</exclude>
  253. <exclude>META-INF/*.RSA</exclude>
  254. </excludes>
  255. </filter>
  256. </filters>
  257. <transformers>
  258. <transformer
  259. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  260. <mainClass>org.myorg.quickstart.StreamingJob</mainClass>
  261. </transformer>
  262. <!-- The service transformer is needed to merge META-INF/services files -->
  263. <transformer
  264. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  265. <transformer
  266. implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
  267. <projectName>Apache Flink</projectName>
  268. <encoding>UTF-8</encoding>
  269. </transformer>
  270. </transformers>
  271. </configuration>
  272. </execution>
  273. </executions>
  274. </plugin>
  275. <!-- Java Compiler -->
  276. <plugin>
  277. <groupId>org.apache.maven.plugins</groupId>
  278. <artifactId>maven-compiler-plugin</artifactId>
  279. <version>3.1</version>
  280. <configuration>
  281. <source>1.8</source>
  282. <target>1.8</target>
  283. </configuration>
  284. </plugin>
  285. <!-- Scala Compiler -->
  286. <plugin>
  287. <groupId>net.alchim31.maven</groupId>
  288. <artifactId>scala-maven-plugin</artifactId>
  289. <version>3.2.2</version>
  290. <executions>
  291. <execution>
  292. <goals>
  293. <goal>compile</goal>
  294. <goal>testCompile</goal>
  295. </goals>
  296. </execution>
  297. </executions>
  298. <configuration>
  299. <addScalacArgs>-target:jvm-1.8</addScalacArgs>
  300. <args>
  301. <arg>-nobootcp</arg>
  302. </args>
  303. </configuration>
  304. </plugin>
  305. <!-- Eclipse Scala Integration -->
  306. <!-- <plugin>-->
  307. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  308. <!-- <artifactId>maven-eclipse-plugin</artifactId>-->
  309. <!-- <version>2.8</version>-->
  310. <!-- <configuration>-->
  311. <!-- <downloadSources>true</downloadSources>-->
  312. <!-- <projectnatures>-->
  313. <!-- <projectnature>org.scala-ide.sdt.core.scalanature</projectnature>-->
  314. <!-- <projectnature>org.eclipse.jdt.core.javanature</projectnature>-->
  315. <!-- </projectnatures>-->
  316. <!-- <buildcommands>-->
  317. <!-- <buildcommand>org.scala-ide.sdt.core.scalabuilder</buildcommand>-->
  318. <!-- </buildcommands>-->
  319. <!-- <classpathContainers>-->
  320. <!-- <classpathContainer>org.scala-ide.sdt.launching.SCALA_CONTAINER</classpathContainer>-->
  321. <!-- <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>-->
  322. <!-- </classpathContainers>-->
  323. <!-- <excludes>-->
  324. <!-- <exclude>org.scala-lang:scala-library</exclude>-->
  325. <!-- <exclude>org.scala-lang:scala-compiler</exclude>-->
  326. <!-- </excludes>-->
  327. <!-- <sourceIncludes>-->
  328. <!-- <sourceInclude>**/*.scala</sourceInclude>-->
  329. <!-- <sourceInclude>**/*.java</sourceInclude>-->
  330. <!-- </sourceIncludes>-->
  331. <!-- </configuration>-->
  332. <!-- </plugin>-->
  333. <plugin>
  334. <groupId>org.codehaus.mojo</groupId>
  335. <artifactId>build-helper-maven-plugin</artifactId>
  336. <version>1.7</version>
  337. <executions>
  338. <!-- Add src/main/scala to eclipse build path -->
  339. <execution>
  340. <id>add-source</id>
  341. <phase>generate-sources</phase>
  342. <goals>
  343. <goal>add-source</goal>
  344. </goals>
  345. <configuration>
  346. <sources>
  347. <source>src/main/scala</source>
  348. </sources>
  349. </configuration>
  350. </execution>
  351. <!-- Add src/test/scala to eclipse build path -->
  352. <execution>
  353. <id>add-test-source</id>
  354. <phase>generate-test-sources</phase>
  355. <goals>
  356. <goal>add-test-source</goal>
  357. </goals>
  358. <configuration>
  359. <sources>
  360. <source>src/test/scala</source>
  361. </sources>
  362. </configuration>
  363. </execution>
  364. </executions>
  365. </plugin>
  366. </plugins>
  367. </build>
  368. </project>