pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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>org.example</groupId>
  7. <artifactId>IOT</artifactId>
  8. <packaging>pom</packaging>
  9. <version>1.0-SNAPSHOT</version>
  10. <modules>
  11. <module>data_collect</module>
  12. <module>data_transfer</module>
  13. </modules>
  14. <properties>
  15. <flink.version>1.10.0</flink.version>
  16. <scala.binary.version>2.11</scala.binary.version>
  17. <kafka.version>2.2.0</kafka.version>
  18. <maven.compiler.source>8</maven.compiler.source>
  19. <maven.compiler.target>8</maven.compiler.target>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.apache.flink</groupId>
  24. <artifactId>flink-scala_${scala.binary.version}</artifactId>
  25. <version>${flink.version}</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.apache.flink</groupId>
  29. <artifactId>flink-streaming-scala_${scala.binary.version}</artifactId>
  30. <version>${flink.version}</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.apache.kafka</groupId>
  34. <artifactId>kafka_${scala.binary.version}</artifactId>
  35. <version>${kafka.version}</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.flink</groupId>
  39. <artifactId>flink-connector-kafka_${scala.binary.version}</artifactId>
  40. <version>${flink.version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>mysql</groupId>
  44. <artifactId>mysql-connector-java</artifactId>
  45. <version>5.1.49</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.flink</groupId>
  49. <artifactId>flink-statebackend-rocksdb_2.11</artifactId>
  50. <version>1.10.0</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.apache.flink</groupId>
  54. <artifactId>flink-table-planner_2.11</artifactId>
  55. <version>1.10.0</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.apache.flink</groupId>
  59. <artifactId>flink-table-planner-blink_2.11</artifactId>
  60. <version>1.10.0</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.flink</groupId>
  64. <artifactId>flink-csv</artifactId>
  65. <version>1.10.0</version>
  66. </dependency>
  67. <!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
  68. <dependency>
  69. <groupId>com.alibaba</groupId>
  70. <artifactId>druid</artifactId>
  71. <version>1.1.24</version>
  72. </dependency>
  73. <!-- https://mvnrepository.com/artifact/org.apache.flink/flink-hbase -->
  74. <dependency>
  75. <groupId>org.apache.flink</groupId>
  76. <artifactId>flink-hbase_2.11</artifactId>
  77. <version>1.10.2</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.apache.hbase</groupId>
  81. <artifactId>hbase-client</artifactId>
  82. <version>1.3.1</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.apache.hbase</groupId>
  86. <artifactId>hbase-common</artifactId>
  87. <version>1.3.1</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>mysql</groupId>
  91. <artifactId>mysql-connector-java</artifactId>
  92. <version>5.1.44</version>
  93. </dependency>
  94. <!-- https://mvnrepository.com/artifact/net.minidev/json-smart -->
  95. <dependency>
  96. <groupId>net.minidev</groupId>
  97. <artifactId>json-smart</artifactId>
  98. <version>2.3</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.flink</groupId>
  102. <artifactId>flink-connector-filesystem_2.12</artifactId>
  103. <version>${flink.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.flink</groupId>
  107. <artifactId>flink-connector-kafka-0.11_2.12</artifactId>
  108. <version>${flink.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.apache.flink</groupId>
  112. <artifactId>flink-streaming-java_2.12</artifactId>
  113. <version>${flink.version}</version>
  114. </dependency>
  115. </dependencies>
  116. <build>
  117. <plugins>
  118. <!-- 该插件用于将Scala代码编译成class文件 -->
  119. <plugin>
  120. <groupId>net.alchim31.maven</groupId>
  121. <artifactId>scala-maven-plugin</artifactId>
  122. <version>3.4.6</version>
  123. <executions>
  124. <execution>
  125. <!-- 声明绑定到maven的compile阶段 -->
  126. <goals>
  127. <goal>compile</goal>
  128. </goals>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-assembly-plugin</artifactId>
  135. <version>3.0.0</version>
  136. <configuration>
  137. <descriptorRefs>
  138. <descriptorRef>
  139. jar-with-dependencies
  140. </descriptorRef>
  141. </descriptorRefs>
  142. </configuration>
  143. <executions>
  144. <execution>
  145. <id>make-assembly</id>
  146. <phase>package</phase>
  147. <goals>
  148. <goal>single</goal>
  149. </goals>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. </plugins>
  154. </build>
  155. </project>