flink-test/pom.xml

157 lines
5.5 KiB
XML
Raw Normal View History

2020-04-28 13:14:59 +00:00
<?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"
2020-05-05 06:07:14 +00:00
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>
2020-04-28 13:14:59 +00:00
2020-05-05 06:07:14 +00:00
<groupId>com.thinker</groupId>
<artifactId>flink-test</artifactId>
<version>1.0-SNAPSHOT</version>
2020-04-28 13:14:59 +00:00
2020-05-05 06:07:14 +00:00
<name>flink-test</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
2020-04-28 13:14:59 +00:00
2020-05-05 06:07:14 +00:00
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<flink.version>1.10.0</flink.version>
<scala.binary.version>2.11</scala.binary.version>
</properties>
2020-04-28 13:14:59 +00:00
2020-05-05 06:07:14 +00:00
<dependencies>
2020-04-28 13:14:59 +00:00
2020-05-05 06:07:14 +00:00
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-java</artifactId>
<version>${flink.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-java_${scala.binary.version}</artifactId>
<version>${flink.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients_${scala.binary.version}</artifactId>
<version>${flink.version}</version>
</dependency>
2020-04-28 13:14:59 +00:00
2020-05-05 06:07:14 +00:00
<!--日志-->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.7</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
<scope>runtime</scope>
</dependency>
<!--flink kafka connector-->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-kafka-0.11_${scala.binary.version}</artifactId>
<version>${flink.version}</version>
</dependency>
2020-04-28 13:14:59 +00:00
2020-05-05 06:07:14 +00:00
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>statefun-sdk</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>statefun-flink-harness</artifactId>
<version>2.0.0</version>
</dependency>
2020-04-28 13:14:59 +00:00
2020-05-05 06:07:14 +00:00
<!--alibaba fastjson-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.51</version>
</dependency>
2020-04-28 13:14:59 +00:00
2020-05-05 06:07:14 +00:00
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.34</version>
</dependency>
2020-04-28 13:14:59 +00:00
2020-05-05 12:45:45 +00:00
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.8</version>
<scope>provided</scope>
</dependency>
2020-05-14 16:47:18 +00:00
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.10.6</version>
<scope>provided</scope>
</dependency>
2020-05-05 06:07:14 +00:00
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
2020-04-28 13:14:59 +00:00
2020-05-14 16:47:18 +00:00
2020-05-05 06:07:14 +00:00
<build>
<plugins>
2020-05-14 16:47:18 +00:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<type>jar</type>
<includeTypes>jar</includeTypes>
<outputDirectory>target/lib</outputDirectory>
<excludeTransitive>false</excludeTransitive>
<stripVersion>true</stripVersion>
</configuration>
</execution>
</executions>
</plugin>
2020-05-05 06:07:14 +00:00
<!-- 该插件用于将Scala代码编译成class文件 -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.4.6</version>
<executions>
<execution>
<!-- 声明绑定到maven的compile阶段 -->
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
2020-05-14 16:47:18 +00:00
<artifactId>maven-jar-plugin</artifactId>
2020-05-05 06:07:14 +00:00
</plugin>
</plugins>
</build>
2020-04-28 13:14:59 +00:00
</project>