|
@@ -0,0 +1,284 @@
|
|
|
+<?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.zangxiangnet</groupId>
|
|
|
+ <artifactId>flink-game-old-system</artifactId>
|
|
|
+ <version>1.0-SNAPSHOT</version>
|
|
|
+
|
|
|
+ <repositories>
|
|
|
+ <!-- cloudera 的仓库 -->
|
|
|
+ <repository>
|
|
|
+ <id>cloudera</id>
|
|
|
+ <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
|
|
|
+ <name>Cloudera Repositories</name>
|
|
|
+ <releases>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </releases>
|
|
|
+ <snapshots>
|
|
|
+ <enabled>false</enabled>
|
|
|
+ </snapshots>
|
|
|
+ </repository>
|
|
|
+ <!-- maven 的仓库 -->
|
|
|
+ <repository>
|
|
|
+ <id>aliyun</id>
|
|
|
+ <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
|
|
|
+ <name>Maven2 Repositories</name>
|
|
|
+ <snapshots>
|
|
|
+ <enabled>false</enabled>
|
|
|
+ </snapshots>
|
|
|
+ </repository>
|
|
|
+ </repositories>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <java.version>1.8</java.version>
|
|
|
+ <maven.compiler.source>${java.version}</maven.compiler.source>
|
|
|
+ <maven.compiler.target>${java.version}</maven.compiler.target>
|
|
|
+ <flink.version>1.14.5</flink.version>
|
|
|
+ <scala.version>2.11</scala.version>
|
|
|
+ <!--<hadoop.version>3.0.0-cdh6.3.2</hadoop.version>-->
|
|
|
+ <!--<hadoop.version>3.0.0</hadoop.version>-->
|
|
|
+ <log4j.version>2.14.1</log4j.version>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-java</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-streaming-java_${scala.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-clients_${scala.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-statebackend-rocksdb_2.11</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-connector-kafka_${scala.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- flink sql -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-table-planner_${scala.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-connector-jdbc_${scala.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+ <!-- flink sql读写 json -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-json</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!--flink-clickhouse-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>ru.yandex.clickhouse</groupId>
|
|
|
+ <artifactId>clickhouse-jdbc</artifactId>
|
|
|
+ <version>0.3.0</version>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
+ <artifactId>jackson-databind</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
+ <artifactId>jackson-core</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.kafka</groupId>
|
|
|
+ <artifactId>kafka-clients</artifactId>
|
|
|
+ <version>2.7.0</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.commons</groupId>
|
|
|
+ <artifactId>commons-dbcp2</artifactId>
|
|
|
+ <version>2.6.0</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- flink-mysql-cdc-connector -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.ververica</groupId>
|
|
|
+ <artifactId>flink-connector-mysql-cdc</artifactId>
|
|
|
+ <version>2.3-SNAPSHOT</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- xml操作数据库 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mybatis</groupId>
|
|
|
+ <artifactId>mybatis</artifactId>
|
|
|
+ <version>3.5.11</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ <version>8.0.27</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- fastjson1.x 有漏洞和bug,不推荐使用 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.fastjson2</groupId>
|
|
|
+ <artifactId>fastjson2</artifactId>
|
|
|
+ <version>2.0.20</version>
|
|
|
+ </dependency>
|
|
|
+ <!--如果保存检查点到hdfs上,需要引入此依赖-->
|
|
|
+ <!--<dependency>
|
|
|
+ <groupId>org.apache.hadoop</groupId>
|
|
|
+ <artifactId>hadoop-client</artifactId>
|
|
|
+ <version>${hadoop.version}</version>
|
|
|
+ </dependency>-->
|
|
|
+
|
|
|
+ <!-- Kudu Client Libraries -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.kudu</groupId>
|
|
|
+ <artifactId>kudu-client</artifactId>
|
|
|
+ <version>1.10.0</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!--impala-jar包-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.cloudera</groupId>
|
|
|
+ <artifactId>ImpalaJDBC41</artifactId>
|
|
|
+ <version>2.6.4</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!--Flink默认使用的是slf4j记录日志,相当于一个日志的接口,我们这里使用log4j作为具体的日志实现-->
|
|
|
+ <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>
|
|
|
+
|
|
|
+ <!--lomback插件依赖-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ <version>1.18.2</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <includes>
|
|
|
+ <!--包含文件夹以及子文件夹下所有资源-->
|
|
|
+ <include>**/*.*</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/java</directory>
|
|
|
+ <includes>
|
|
|
+ <include>**/*.xml</include>
|
|
|
+ </includes>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <version>3.0.0</version>
|
|
|
+ <configuration>
|
|
|
+ <descriptorRefs>
|
|
|
+ <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
+ </descriptorRefs>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>make-assembly</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>single</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <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:flink-shaded-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>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+</project>
|