pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  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>flink-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. <dependency>
  141. <groupId>org.yaml</groupId>
  142. <artifactId>snakeyaml</artifactId>
  143. <version>1.17</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.alibaba</groupId>
  147. <artifactId>dns-cache-manipulator</artifactId>
  148. <version>1.5.1</version>
  149. </dependency>
  150. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  151. <dependency>
  152. <groupId>com.alibaba</groupId>
  153. <artifactId>fastjson</artifactId>
  154. <version>1.2.78</version>
  155. </dependency>
  156. <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
  157. <dependency>
  158. <groupId>org.projectlombok</groupId>
  159. <artifactId>lombok</artifactId>
  160. <version>1.18.20</version>
  161. <scope>provided</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>cn.hutool</groupId>
  165. <artifactId>hutool-all</artifactId>
  166. <version>5.7.10</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.json4s</groupId>
  170. <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
  171. <version>3.7.0-M7</version>
  172. </dependency>
  173. </dependencies>
  174. <build>
  175. <finalName>winhc_flink-${project.version}</finalName>
  176. <plugins>
  177. <!-- We use the maven-shade plugin to create a fat jar that contains all necessary dependencies. -->
  178. <!-- Change the value of <mainClass>...</mainClass> if your program entry point changes. -->
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-shade-plugin</artifactId>
  182. <version>3.1.1</version>
  183. <executions>
  184. <!-- Run shade goal on package phase -->
  185. <execution>
  186. <phase>package</phase>
  187. <goals>
  188. <goal>shade</goal>
  189. </goals>
  190. <configuration>
  191. <artifactSet>
  192. <excludes>
  193. <exclude>org.apache.flink:force-shading</exclude>
  194. <exclude>com.google.code.findbugs:jsr305</exclude>
  195. <exclude>org.slf4j:*</exclude>
  196. <exclude>org.apache.logging.log4j:*</exclude>
  197. </excludes>
  198. </artifactSet>
  199. <filters>
  200. <filter>
  201. <!-- Do not copy the signatures in the META-INF folder.
  202. Otherwise, this might cause SecurityExceptions when using the JAR. -->
  203. <artifact>*:*</artifact>
  204. <excludes>
  205. <exclude>META-INF/*.SF</exclude>
  206. <exclude>META-INF/*.DSA</exclude>
  207. <exclude>META-INF/*.RSA</exclude>
  208. </excludes>
  209. </filter>
  210. </filters>
  211. <transformers>
  212. <transformer
  213. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  214. <mainClass>org.myorg.quickstart.StreamingJob</mainClass>
  215. </transformer>
  216. <!-- The service transformer is needed to merge META-INF/services files -->
  217. <transformer
  218. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  219. <transformer
  220. implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
  221. <projectName>Apache Flink</projectName>
  222. <encoding>UTF-8</encoding>
  223. </transformer>
  224. </transformers>
  225. </configuration>
  226. </execution>
  227. </executions>
  228. </plugin>
  229. <!-- Java Compiler -->
  230. <plugin>
  231. <groupId>org.apache.maven.plugins</groupId>
  232. <artifactId>maven-compiler-plugin</artifactId>
  233. <version>3.1</version>
  234. <configuration>
  235. <source>1.8</source>
  236. <target>1.8</target>
  237. </configuration>
  238. </plugin>
  239. <!-- Scala Compiler -->
  240. <plugin>
  241. <groupId>net.alchim31.maven</groupId>
  242. <artifactId>scala-maven-plugin</artifactId>
  243. <version>3.2.2</version>
  244. <executions>
  245. <execution>
  246. <goals>
  247. <goal>compile</goal>
  248. <goal>testCompile</goal>
  249. </goals>
  250. </execution>
  251. </executions>
  252. <configuration>
  253. <args>
  254. <arg>-nobootcp</arg>
  255. </args>
  256. </configuration>
  257. </plugin>
  258. <!-- Eclipse Scala Integration -->
  259. <!-- <plugin>-->
  260. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  261. <!-- <artifactId>maven-eclipse-plugin</artifactId>-->
  262. <!-- <version>2.8</version>-->
  263. <!-- <configuration>-->
  264. <!-- <downloadSources>true</downloadSources>-->
  265. <!-- <projectnatures>-->
  266. <!-- <projectnature>org.scala-ide.sdt.core.scalanature</projectnature>-->
  267. <!-- <projectnature>org.eclipse.jdt.core.javanature</projectnature>-->
  268. <!-- </projectnatures>-->
  269. <!-- <buildcommands>-->
  270. <!-- <buildcommand>org.scala-ide.sdt.core.scalabuilder</buildcommand>-->
  271. <!-- </buildcommands>-->
  272. <!-- <classpathContainers>-->
  273. <!-- <classpathContainer>org.scala-ide.sdt.launching.SCALA_CONTAINER</classpathContainer>-->
  274. <!-- <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>-->
  275. <!-- </classpathContainers>-->
  276. <!-- <excludes>-->
  277. <!-- <exclude>org.scala-lang:scala-library</exclude>-->
  278. <!-- <exclude>org.scala-lang:scala-compiler</exclude>-->
  279. <!-- </excludes>-->
  280. <!-- <sourceIncludes>-->
  281. <!-- <sourceInclude>**/*.scala</sourceInclude>-->
  282. <!-- <sourceInclude>**/*.java</sourceInclude>-->
  283. <!-- </sourceIncludes>-->
  284. <!-- </configuration>-->
  285. <!-- </plugin>-->
  286. <plugin>
  287. <groupId>org.codehaus.mojo</groupId>
  288. <artifactId>build-helper-maven-plugin</artifactId>
  289. <version>1.7</version>
  290. <executions>
  291. <!-- Add src/main/scala to eclipse build path -->
  292. <execution>
  293. <id>add-source</id>
  294. <phase>generate-sources</phase>
  295. <goals>
  296. <goal>add-source</goal>
  297. </goals>
  298. <configuration>
  299. <sources>
  300. <source>src/main/scala</source>
  301. </sources>
  302. </configuration>
  303. </execution>
  304. <!-- Add src/test/scala to eclipse build path -->
  305. <execution>
  306. <id>add-test-source</id>
  307. <phase>generate-test-sources</phase>
  308. <goals>
  309. <goal>add-test-source</goal>
  310. </goals>
  311. <configuration>
  312. <sources>
  313. <source>src/test/scala</source>
  314. </sources>
  315. </configuration>
  316. </execution>
  317. </executions>
  318. </plugin>
  319. </plugins>
  320. </build>
  321. </project>