|
@@ -0,0 +1,396 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
+
|
|
|
+ <groupId>com.winhc.bigdata</groupId>
|
|
|
+ <artifactId>flink-winhc_flink</artifactId>
|
|
|
+ <packaging>jar</packaging>
|
|
|
+ <version>1.0</version>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+
|
|
|
+ <flink.version>1.12.3</flink.version>
|
|
|
+ <scala.version>2.11.12</scala.version>
|
|
|
+ <scala.binary.version>2.11</scala.binary.version>
|
|
|
+ <log4j.version>2.12.1</log4j.version>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <maven.compiler.source>8</maven.compiler.source>
|
|
|
+ <maven.compiler.target>8</maven.compiler.target>
|
|
|
+ <!-- <connector.version>1.12-vvr-3.0.2</connector.version>-->
|
|
|
+ <connector.version>1.13-vvr-4.0.7-SNAPSHOT</connector.version>
|
|
|
+ <scope>compile</scope>
|
|
|
+ <!-- <scope>provided</scope>-->
|
|
|
+ </properties>
|
|
|
+
|
|
|
+ <repositories>
|
|
|
+ <repository>
|
|
|
+ <id>oss.sonatype.org-snapshot</id>
|
|
|
+ <name>OSS Sonatype Snapshot Repository</name>
|
|
|
+ <url>http://oss.sonatype.org/content/repositories/snapshots</url>
|
|
|
+ <releases>
|
|
|
+ <enabled>false</enabled>
|
|
|
+ </releases>
|
|
|
+ <snapshots>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </snapshots>
|
|
|
+ </repository>
|
|
|
+ <repository>
|
|
|
+ <id>apache.snapshots</id>
|
|
|
+ <name>Apache Development Snapshot Repository</name>
|
|
|
+ <url>https://repository.apache.org/content/repositories/snapshots/</url>
|
|
|
+ <releases>
|
|
|
+ <enabled>false</enabled>
|
|
|
+ </releases>
|
|
|
+ <snapshots>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </snapshots>
|
|
|
+ </repository>
|
|
|
+ </repositories>
|
|
|
+
|
|
|
+ <dependencies>
|
|
|
+ <!-- Apache Flink dependencies -->
|
|
|
+ <!-- These dependencies are provided, because they should not be packaged into the JAR file. -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-scala_${scala.binary.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>${scope}</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-streaming-scala_${scala.binary.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>${scope}</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-clients_${scala.binary.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>${scope}</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-table-api-scala-bridge_${scala.binary.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>${scope}</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-table-planner-blink_${scala.binary.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>${scope}</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-table-common</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>${scope}</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Scala Library, provided by Flink as well. -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.scala-lang</groupId>
|
|
|
+ <artifactId>scala-library</artifactId>
|
|
|
+ <version>${scala.version}</version>
|
|
|
+ <scope>${scope}</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Add connector dependencies here. They must be in the default scope (compile). -->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- Add logging framework, to produce console output when running in the IDE. -->
|
|
|
+ <!-- These dependencies are excluded from the application JAR by default. -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.logging.log4j</groupId>
|
|
|
+ <artifactId>log4j-slf4j-impl</artifactId>
|
|
|
+ <version>${log4j.version}</version>
|
|
|
+ <scope>runtime</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.logging.log4j</groupId>
|
|
|
+ <artifactId>log4j-api</artifactId>
|
|
|
+ <version>${log4j.version}</version>
|
|
|
+ <scope>runtime</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.logging.log4j</groupId>
|
|
|
+ <artifactId>log4j-core</artifactId>
|
|
|
+ <version>${log4j.version}</version>
|
|
|
+ <scope>runtime</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.yaml</groupId>
|
|
|
+ <artifactId>snakeyaml</artifactId>
|
|
|
+ <version>1.17</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>dns-cache-manipulator</artifactId>
|
|
|
+ <version>1.5.1</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
+ <version>1.2.78</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ <version>1.18.20</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.hutool</groupId>
|
|
|
+ <artifactId>hutool-all</artifactId>
|
|
|
+ <version>5.7.10</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.json4s</groupId>
|
|
|
+ <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
|
|
|
+ <version>3.7.0-M7</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.ververica</groupId>
|
|
|
+ <artifactId>ververica-connector-odps</artifactId>
|
|
|
+ <version>${connector.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.ververica</groupId>
|
|
|
+ <artifactId>ververica-connector-hologres</artifactId>
|
|
|
+ <version>${connector.version}</version>
|
|
|
+
|
|
|
+ <!-- <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>com.alibaba.hologres</groupId>
|
|
|
+ <artifactId>holo-client</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>com.alibaba.blink</groupId>
|
|
|
+ <artifactId>hologres-client</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>com.aliyun.datahub</groupId>
|
|
|
+ <artifactId>aliyun-sdk-datahub-holo</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>-->
|
|
|
+
|
|
|
+ </dependency>
|
|
|
+ <!-- <dependency>
|
|
|
+ <groupId>com.alibaba.hologres</groupId>
|
|
|
+ <artifactId>holo-client</artifactId>
|
|
|
+ <version>1.2.13.6</version>
|
|
|
+ </dependency>-->
|
|
|
+
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.ververica</groupId>
|
|
|
+ <artifactId>ververica-connector-elasticsearch6</artifactId>
|
|
|
+ <version>${connector.version}</version>
|
|
|
+ <!-- <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-connector-elasticsearch6_2.11</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>-->
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.ververica</groupId>
|
|
|
+ <artifactId>ververica-connector-cloudhbase</artifactId>
|
|
|
+ <version>${connector.version}</version>
|
|
|
+ <!-- <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>com.aliyun.hbase</groupId>
|
|
|
+ <artifactId>alihbase-client</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>-->
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.ververica</groupId>
|
|
|
+ <artifactId>ververica-connector-kafka</artifactId>
|
|
|
+ <version>${connector.version}</version>
|
|
|
+ <!-- <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <artifactId>flink-connector-kafka_${scala.binary.version}</artifactId>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>-->
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-connector-kafka_${scala.binary.version}</artifactId>
|
|
|
+ <scope>test</scope>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ </dependency>-->
|
|
|
+
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <finalName>winhc_flink-${project.version}</finalName>
|
|
|
+ <plugins>
|
|
|
+ <!-- We use the maven-shade plugin to create a fat jar that contains all necessary dependencies. -->
|
|
|
+ <!-- Change the value of <mainClass>...</mainClass> if your program entry point changes. -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-shade-plugin</artifactId>
|
|
|
+ <version>3.1.1</version>
|
|
|
+ <executions>
|
|
|
+ <!-- Run shade goal on package phase -->
|
|
|
+ <execution>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>shade</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <artifactSet>
|
|
|
+ <excludes>
|
|
|
+ <exclude>org.apache.flink:force-shading</exclude>
|
|
|
+ <exclude>com.google.code.findbugs:jsr305</exclude>
|
|
|
+ <exclude>org.slf4j:*</exclude>
|
|
|
+ <exclude>org.apache.logging.log4j:*</exclude>
|
|
|
+ </excludes>
|
|
|
+ </artifactSet>
|
|
|
+ <filters>
|
|
|
+ <filter>
|
|
|
+ <!-- Do not copy the signatures in the META-INF folder.
|
|
|
+ Otherwise, this might cause SecurityExceptions when using the JAR. -->
|
|
|
+ <artifact>*:*</artifact>
|
|
|
+ <excludes>
|
|
|
+ <exclude>META-INF/*.SF</exclude>
|
|
|
+ <exclude>META-INF/*.DSA</exclude>
|
|
|
+ <exclude>META-INF/*.RSA</exclude>
|
|
|
+ </excludes>
|
|
|
+ </filter>
|
|
|
+ </filters>
|
|
|
+ <transformers>
|
|
|
+ <transformer
|
|
|
+ implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
|
+ <mainClass>org.myorg.quickstart.StreamingJob</mainClass>
|
|
|
+ </transformer>
|
|
|
+
|
|
|
+ <!-- The service transformer is needed to merge META-INF/services files -->
|
|
|
+ <transformer
|
|
|
+ implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
|
+ <transformer
|
|
|
+ implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
|
|
|
+ <projectName>Apache Flink</projectName>
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
+ </transformer>
|
|
|
+
|
|
|
+ </transformers>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- Java Compiler -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>1.8</source>
|
|
|
+ <target>1.8</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- Scala Compiler -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>net.alchim31.maven</groupId>
|
|
|
+ <artifactId>scala-maven-plugin</artifactId>
|
|
|
+ <version>3.2.2</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>compile</goal>
|
|
|
+ <goal>testCompile</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ <configuration>
|
|
|
+ <args>
|
|
|
+ <arg>-nobootcp</arg>
|
|
|
+ </args>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- Eclipse Scala Integration -->
|
|
|
+ <!-- <plugin>-->
|
|
|
+ <!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
|
+ <!-- <artifactId>maven-eclipse-plugin</artifactId>-->
|
|
|
+ <!-- <version>2.8</version>-->
|
|
|
+ <!-- <configuration>-->
|
|
|
+ <!-- <downloadSources>true</downloadSources>-->
|
|
|
+ <!-- <projectnatures>-->
|
|
|
+ <!-- <projectnature>org.scala-ide.sdt.core.scalanature</projectnature>-->
|
|
|
+ <!-- <projectnature>org.eclipse.jdt.core.javanature</projectnature>-->
|
|
|
+ <!-- </projectnatures>-->
|
|
|
+ <!-- <buildcommands>-->
|
|
|
+ <!-- <buildcommand>org.scala-ide.sdt.core.scalabuilder</buildcommand>-->
|
|
|
+ <!-- </buildcommands>-->
|
|
|
+ <!-- <classpathContainers>-->
|
|
|
+ <!-- <classpathContainer>org.scala-ide.sdt.launching.SCALA_CONTAINER</classpathContainer>-->
|
|
|
+ <!-- <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>-->
|
|
|
+ <!-- </classpathContainers>-->
|
|
|
+ <!-- <excludes>-->
|
|
|
+ <!-- <exclude>org.scala-lang:scala-library</exclude>-->
|
|
|
+ <!-- <exclude>org.scala-lang:scala-compiler</exclude>-->
|
|
|
+ <!-- </excludes>-->
|
|
|
+ <!-- <sourceIncludes>-->
|
|
|
+ <!-- <sourceInclude>**/*.scala</sourceInclude>-->
|
|
|
+ <!-- <sourceInclude>**/*.java</sourceInclude>-->
|
|
|
+ <!-- </sourceIncludes>-->
|
|
|
+ <!-- </configuration>-->
|
|
|
+ <!-- </plugin>-->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>build-helper-maven-plugin</artifactId>
|
|
|
+ <version>1.7</version>
|
|
|
+ <executions>
|
|
|
+ <!-- Add src/main/scala to eclipse build path -->
|
|
|
+ <execution>
|
|
|
+ <id>add-source</id>
|
|
|
+ <phase>generate-sources</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>add-source</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <sources>
|
|
|
+ <source>src/main/scala</source>
|
|
|
+ </sources>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ <!-- Add src/test/scala to eclipse build path -->
|
|
|
+ <execution>
|
|
|
+ <id>add-test-source</id>
|
|
|
+ <phase>generate-test-sources</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>add-test-source</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <sources>
|
|
|
+ <source>src/test/scala</source>
|
|
|
+ </sources>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+
|
|
|
+</project>
|