|
@@ -0,0 +1,117 @@
|
|
|
+<?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>org.example</groupId>
|
|
|
+ <artifactId>IOT</artifactId>
|
|
|
+ <packaging>pom</packaging>
|
|
|
+ <version>1.0-SNAPSHOT</version>
|
|
|
+ <modules>
|
|
|
+ <module>data_collect</module>
|
|
|
+ </modules>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <flink.version>1.10.0</flink.version>
|
|
|
+ <scala.binary.version>2.11</scala.binary.version>
|
|
|
+ <kafka.version>2.2.0</kafka.version>
|
|
|
+ <maven.compiler.source>8</maven.compiler.source>
|
|
|
+ <maven.compiler.target>8</maven.compiler.target>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-scala_${scala.binary.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-streaming-scala_${scala.binary.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.kafka</groupId>
|
|
|
+ <artifactId>kafka_${scala.binary.version}</artifactId>
|
|
|
+ <version>${kafka.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-connector-kafka_${scala.binary.version}</artifactId>
|
|
|
+ <version>${flink.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ <version>5.1.49</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>druid</artifactId>
|
|
|
+ <version>1.1.24</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- https://mvnrepository.com/artifact/org.apache.flink/flink-hbase -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.flink</groupId>
|
|
|
+ <artifactId>flink-hbase_2.11</artifactId>
|
|
|
+ <version>1.10.2</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.hbase</groupId>
|
|
|
+ <artifactId>hbase-client</artifactId>
|
|
|
+ <version>1.3.1</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.hbase</groupId>
|
|
|
+ <artifactId>hbase-common</artifactId>
|
|
|
+ <version>1.3.1</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <!-- 该插件用于将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>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <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>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+
|
|
|
+</project>
|