pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  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-SNAPSHOT</connector.version>
  19. <scope>compile</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-scala_${scala.binary.version}</artifactId>
  52. <version>${flink.version}</version>
  53. <scope>${scope}</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.flink</groupId>
  57. <artifactId>flink-streaming-scala_${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-clients_${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-table-api-scala-bridge_${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-table-planner-blink_${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-common</artifactId>
  82. <version>${flink.version}</version>
  83. <scope>${scope}</scope>
  84. </dependency>
  85. <!-- Scala Library, provided by Flink as well. -->
  86. <dependency>
  87. <groupId>org.scala-lang</groupId>
  88. <artifactId>scala-library</artifactId>
  89. <version>${scala.version}</version>
  90. <scope>${scope}</scope>
  91. </dependency>
  92. <!-- Add connector dependencies here. They must be in the default scope (compile). -->
  93. <!-- add vvr dependencies -->
  94. <dependency>
  95. <groupId>com.alibaba.ververica</groupId>
  96. <artifactId>ververica-connector-odps</artifactId>
  97. <version>${connector.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.alibaba.ververica</groupId>
  101. <artifactId>ververica-connector-hologres</artifactId>
  102. <version>${connector.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.alibaba.ververica</groupId>
  106. <artifactId>ververica-connector-elasticsearch6</artifactId>
  107. <version>${connector.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.alibaba.ververica</groupId>
  111. <artifactId>ververica-connector-cloudhbase</artifactId>
  112. <version>${connector.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.alibaba.ververica</groupId>
  116. <artifactId>ververica-connector-kafka</artifactId>
  117. <version>${connector.version}</version>
  118. </dependency>
  119. <!-- Add logging framework, to produce console output when running in the IDE. -->
  120. <!-- These dependencies are excluded from the application JAR by default. -->
  121. <dependency>
  122. <groupId>org.apache.logging.log4j</groupId>
  123. <artifactId>log4j-slf4j-impl</artifactId>
  124. <version>${log4j.version}</version>
  125. <scope>runtime</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.apache.logging.log4j</groupId>
  129. <artifactId>log4j-api</artifactId>
  130. <version>${log4j.version}</version>
  131. <scope>runtime</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.logging.log4j</groupId>
  135. <artifactId>log4j-core</artifactId>
  136. <version>${log4j.version}</version>
  137. <scope>runtime</scope>
  138. </dependency>
  139. <!-- add other dependencies -->
  140. <!-- https://mvnrepository.com/artifact/org.apache.avro/avro -->
  141. <dependency>
  142. <groupId>org.apache.avro</groupId>
  143. <artifactId>avro</artifactId>
  144. <version>1.10.2</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.yaml</groupId>
  148. <artifactId>snakeyaml</artifactId>
  149. <version>1.17</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>com.alibaba</groupId>
  153. <artifactId>dns-cache-manipulator</artifactId>
  154. <version>1.5.1</version>
  155. </dependency>
  156. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  157. <dependency>
  158. <groupId>com.alibaba</groupId>
  159. <artifactId>fastjson</artifactId>
  160. <version>1.2.78</version>
  161. </dependency>
  162. <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
  163. <dependency>
  164. <groupId>org.projectlombok</groupId>
  165. <artifactId>lombok</artifactId>
  166. <version>1.18.20</version>
  167. <scope>provided</scope>
  168. </dependency>
  169. <dependency>
  170. <groupId>cn.hutool</groupId>
  171. <artifactId>hutool-all</artifactId>
  172. <version>5.7.10</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.json4s</groupId>
  176. <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
  177. <version>3.7.0-M7</version>
  178. </dependency>
  179. </dependencies>
  180. <build>
  181. <finalName>winhc_flink-${project.version}</finalName>
  182. <plugins>
  183. <!-- We use the maven-shade plugin to create a fat jar that contains all necessary dependencies. -->
  184. <!-- Change the value of <mainClass>...</mainClass> if your program entry point changes. -->
  185. <plugin>
  186. <groupId>org.apache.maven.plugins</groupId>
  187. <artifactId>maven-shade-plugin</artifactId>
  188. <version>3.1.1</version>
  189. <executions>
  190. <!-- Run shade goal on package phase -->
  191. <execution>
  192. <phase>package</phase>
  193. <goals>
  194. <goal>shade</goal>
  195. </goals>
  196. <configuration>
  197. <artifactSet>
  198. <excludes>
  199. <exclude>org.apache.flink:force-shading</exclude>
  200. <exclude>com.google.code.findbugs:jsr305</exclude>
  201. <exclude>org.slf4j:*</exclude>
  202. <exclude>org.apache.logging.log4j:*</exclude>
  203. </excludes>
  204. </artifactSet>
  205. <filters>
  206. <filter>
  207. <!-- Do not copy the signatures in the META-INF folder.
  208. Otherwise, this might cause SecurityExceptions when using the JAR. -->
  209. <artifact>*:*</artifact>
  210. <excludes>
  211. <exclude>META-INF/*.SF</exclude>
  212. <exclude>META-INF/*.DSA</exclude>
  213. <exclude>META-INF/*.RSA</exclude>
  214. </excludes>
  215. </filter>
  216. </filters>
  217. <transformers>
  218. <transformer
  219. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  220. <mainClass>org.myorg.quickstart.StreamingJob</mainClass>
  221. </transformer>
  222. <!-- The service transformer is needed to merge META-INF/services files -->
  223. <transformer
  224. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  225. <transformer
  226. implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
  227. <projectName>Apache Flink</projectName>
  228. <encoding>UTF-8</encoding>
  229. </transformer>
  230. </transformers>
  231. </configuration>
  232. </execution>
  233. </executions>
  234. </plugin>
  235. <!-- Java Compiler -->
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-compiler-plugin</artifactId>
  239. <version>3.1</version>
  240. <configuration>
  241. <source>1.8</source>
  242. <target>1.8</target>
  243. </configuration>
  244. </plugin>
  245. <!-- Scala Compiler -->
  246. <plugin>
  247. <groupId>net.alchim31.maven</groupId>
  248. <artifactId>scala-maven-plugin</artifactId>
  249. <version>3.2.2</version>
  250. <executions>
  251. <execution>
  252. <goals>
  253. <goal>compile</goal>
  254. <goal>testCompile</goal>
  255. </goals>
  256. </execution>
  257. </executions>
  258. <configuration>
  259. <args>
  260. <arg>-nobootcp</arg>
  261. </args>
  262. </configuration>
  263. </plugin>
  264. <!-- Eclipse Scala Integration -->
  265. <!-- <plugin>-->
  266. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  267. <!-- <artifactId>maven-eclipse-plugin</artifactId>-->
  268. <!-- <version>2.8</version>-->
  269. <!-- <configuration>-->
  270. <!-- <downloadSources>true</downloadSources>-->
  271. <!-- <projectnatures>-->
  272. <!-- <projectnature>org.scala-ide.sdt.core.scalanature</projectnature>-->
  273. <!-- <projectnature>org.eclipse.jdt.core.javanature</projectnature>-->
  274. <!-- </projectnatures>-->
  275. <!-- <buildcommands>-->
  276. <!-- <buildcommand>org.scala-ide.sdt.core.scalabuilder</buildcommand>-->
  277. <!-- </buildcommands>-->
  278. <!-- <classpathContainers>-->
  279. <!-- <classpathContainer>org.scala-ide.sdt.launching.SCALA_CONTAINER</classpathContainer>-->
  280. <!-- <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>-->
  281. <!-- </classpathContainers>-->
  282. <!-- <excludes>-->
  283. <!-- <exclude>org.scala-lang:scala-library</exclude>-->
  284. <!-- <exclude>org.scala-lang:scala-compiler</exclude>-->
  285. <!-- </excludes>-->
  286. <!-- <sourceIncludes>-->
  287. <!-- <sourceInclude>**/*.scala</sourceInclude>-->
  288. <!-- <sourceInclude>**/*.java</sourceInclude>-->
  289. <!-- </sourceIncludes>-->
  290. <!-- </configuration>-->
  291. <!-- </plugin>-->
  292. <plugin>
  293. <groupId>org.codehaus.mojo</groupId>
  294. <artifactId>build-helper-maven-plugin</artifactId>
  295. <version>1.7</version>
  296. <executions>
  297. <!-- Add src/main/scala to eclipse build path -->
  298. <execution>
  299. <id>add-source</id>
  300. <phase>generate-sources</phase>
  301. <goals>
  302. <goal>add-source</goal>
  303. </goals>
  304. <configuration>
  305. <sources>
  306. <source>src/main/scala</source>
  307. </sources>
  308. </configuration>
  309. </execution>
  310. <!-- Add src/test/scala to eclipse build path -->
  311. <execution>
  312. <id>add-test-source</id>
  313. <phase>generate-test-sources</phase>
  314. <goals>
  315. <goal>add-test-source</goal>
  316. </goals>
  317. <configuration>
  318. <sources>
  319. <source>src/test/scala</source>
  320. </sources>
  321. </configuration>
  322. </execution>
  323. </executions>
  324. </plugin>
  325. </plugins>
  326. </build>
  327. </project>