You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

234 lines
7.9KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  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>com.telpo</groupId>
  7. <artifactId>iotgatewayservice</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <name>data-iot-gateway-server</name>
  10. <description>数据推送服务</description>
  11. <packaging>jar</packaging>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  15. <java.version>1.8</java.version>
  16. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  17. <spring-cloud-alibaba.version>2.2.0.RELEASE</spring-cloud-alibaba.version>
  18. <spring-cloud.version>Hoxton.RELEASE</spring-cloud.version>
  19. <skipTests>true</skipTests>
  20. </properties>
  21. <parent>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-parent</artifactId>
  24. <version>2.2.5.RELEASE</version>
  25. </parent>
  26. <dependencies>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-devtools</artifactId>
  30. <scope>runtime</scope>
  31. <optional>true</optional>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.projectlombok</groupId>
  35. <artifactId>lombok</artifactId>
  36. <optional>true</optional>
  37. </dependency>
  38. <!--天波通用包-->
  39. <dependency>
  40. <groupId>com.telpo</groupId>
  41. <artifactId>common</artifactId>
  42. <version>1.1.19</version>
  43. </dependency>
  44. <!-- amqp 1.0 qpid client -->
  45. <dependency>
  46. <groupId>org.apache.qpid</groupId>
  47. <artifactId>qpid-jms-client</artifactId>
  48. <version>0.47.0</version>
  49. </dependency>
  50. <!-- util for base64-->
  51. <dependency>
  52. <groupId>commons-codec</groupId>
  53. <artifactId>commons-codec</artifactId>
  54. <version>1.10</version>
  55. </dependency>
  56. <!-- springcloud alibaba依赖包-->
  57. <dependency>
  58. <groupId>com.alibaba.cloud</groupId>
  59. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.alibaba.cloud</groupId>
  63. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  64. </dependency>
  65. <!-- springcloud 依赖包-->
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-web</artifactId>
  69. </dependency>
  70. <!--MySQL 连接驱动依赖-->
  71. <dependency>
  72. <groupId>mysql</groupId>
  73. <artifactId>mysql-connector-java</artifactId>
  74. <scope>runtime</scope>
  75. </dependency>
  76. <!--mybatis-plus数据持久层-->
  77. <!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus -->
  78. <dependency>
  79. <groupId>com.baomidou</groupId>
  80. <artifactId>mybatis-plus</artifactId>
  81. <version>3.3.1</version>
  82. </dependency>
  83. <!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-autoconfigure -->
  84. <dependency>
  85. <groupId>org.mybatis.spring.boot</groupId>
  86. <artifactId>mybatis-spring-boot-autoconfigure</artifactId>
  87. <version>2.1.2</version>
  88. </dependency>
  89. <!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter -->
  90. <dependency>
  91. <groupId>org.mybatis.spring.boot</groupId>
  92. <artifactId>mybatis-spring-boot-starter</artifactId>
  93. <version>2.1.2</version>
  94. </dependency>
  95. <!--druid数据连接池-->
  96. <dependency>
  97. <groupId>com.alibaba</groupId>
  98. <artifactId>druid-spring-boot-starter</artifactId>
  99. <version>1.1.22</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-starter-test</artifactId>
  104. <scope>test</scope>
  105. <exclusions>
  106. <exclusion>
  107. <groupId>org.junit.vintage</groupId>
  108. <artifactId>junit-vintage-engine</artifactId>
  109. </exclusion>
  110. </exclusions>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.springframework.boot</groupId>
  114. <artifactId>spring-boot-configuration-processor</artifactId>
  115. <optional>true</optional>
  116. </dependency>
  117. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
  118. <dependency>
  119. <groupId>org.apache.commons</groupId>
  120. <artifactId>commons-lang3</artifactId>
  121. <version>3.10</version>
  122. </dependency>
  123. <!-- AOP-->
  124. <dependency>
  125. <groupId>org.springframework.boot</groupId>
  126. <artifactId>spring-boot-starter-aop</artifactId>
  127. </dependency>
  128. <!-- LocalDateTime 序列化-->
  129. <dependency>
  130. <groupId>com.fasterxml.jackson.datatype</groupId>
  131. <artifactId>jackson-datatype-jsr310</artifactId>
  132. </dependency>
  133. <!-- 开启redis缓存 -->
  134. <dependency>
  135. <groupId>org.springframework.boot</groupId>
  136. <artifactId>spring-boot-starter-data-redis</artifactId>
  137. </dependency>
  138. <!-- redis依赖commons-pool 这个依赖一定要添加 -->
  139. <dependency>
  140. <groupId>org.apache.commons</groupId>
  141. <artifactId>commons-pool2</artifactId>
  142. </dependency>
  143. <!--kafka 依赖-->
  144. <dependency>
  145. <groupId>org.springframework.kafka</groupId>
  146. <artifactId>spring-kafka</artifactId>
  147. </dependency>
  148. <!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
  149. <dependency>
  150. <groupId>com.squareup.okhttp3</groupId>
  151. <artifactId>okhttp</artifactId>
  152. <version>4.8.0</version>
  153. </dependency>
  154. <!-- https://mvnrepository.com/artifact/de.codecentric/spring-boot-admin-starter-client -->
  155. <dependency>
  156. <groupId>de.codecentric</groupId>
  157. <artifactId>spring-boot-admin-starter-client</artifactId>
  158. <version>2.2.4</version>
  159. </dependency>
  160. </dependencies>
  161. <dependencyManagement>
  162. <dependencies>
  163. <dependency>
  164. <groupId>org.springframework.cloud</groupId>
  165. <artifactId>spring-cloud-dependencies</artifactId>
  166. <version>${spring-cloud.version}</version>
  167. <type>pom</type>
  168. <scope>import</scope>
  169. </dependency>
  170. <dependency>
  171. <groupId>com.alibaba.cloud</groupId>
  172. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  173. <version>${spring-cloud-alibaba.version}</version>
  174. <type>pom</type>
  175. <scope>import</scope>
  176. </dependency>
  177. </dependencies>
  178. </dependencyManagement>
  179. <build>
  180. <finalName>${project.artifactId}</finalName>
  181. <plugins>
  182. <plugin>
  183. <groupId>org.springframework.boot</groupId>
  184. <artifactId>spring-boot-maven-plugin</artifactId>
  185. <configuration>
  186. <!--fork : 使用 devtools生效-->
  187. <fork>true</fork>
  188. </configuration>
  189. <executions>
  190. <execution>
  191. <goals>
  192. <goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
  193. </goals>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. </plugins>
  198. </build>
  199. </project>