Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

172 lines
5.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>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. <!-- springcloud alibaba依赖包-->
  45. <dependency>
  46. <groupId>com.alibaba.cloud</groupId>
  47. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.alibaba.cloud</groupId>
  51. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.alibaba.boot</groupId>
  55. <artifactId>nacos-config-spring-boot-starter</artifactId>
  56. <version>0.2.7</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.alibaba.nacos</groupId>
  60. <artifactId>nacos-client</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-webflux</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-web</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-configuration-processor</artifactId>
  73. <optional>true</optional>
  74. </dependency>
  75. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
  76. <dependency>
  77. <groupId>org.apache.commons</groupId>
  78. <artifactId>commons-lang3</artifactId>
  79. <version>3.10</version>
  80. </dependency>
  81. <!-- 开启redis缓存 -->
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-data-redis</artifactId>
  85. </dependency>
  86. <!-- redis依赖commons-pool 这个依赖一定要添加 -->
  87. <dependency>
  88. <groupId>org.apache.commons</groupId>
  89. <artifactId>commons-pool2</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>io.springfox</groupId>
  93. <artifactId>springfox-swagger2</artifactId>
  94. <version>2.9.2</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>io.springfox</groupId>
  98. <artifactId>springfox-swagger-ui</artifactId>
  99. <version>2.9.2</version>
  100. </dependency>
  101. <!-- amqp 1.0 qpid client -->
  102. <dependency>
  103. <groupId>org.apache.qpid</groupId>
  104. <artifactId>qpid-jms-client</artifactId>
  105. <version>0.47.0</version>
  106. </dependency>
  107. <!-- util for base64-->
  108. <dependency>
  109. <groupId>commons-codec</groupId>
  110. <artifactId>commons-codec</artifactId>
  111. <version>1.10</version>
  112. </dependency>
  113. </dependencies>
  114. <dependencyManagement>
  115. <dependencies>
  116. <dependency>
  117. <groupId>org.springframework.cloud</groupId>
  118. <artifactId>spring-cloud-dependencies</artifactId>
  119. <version>${spring-cloud.version}</version>
  120. <type>pom</type>
  121. <scope>import</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.alibaba.cloud</groupId>
  125. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  126. <version>${spring-cloud-alibaba.version}</version>
  127. <type>pom</type>
  128. <scope>import</scope>
  129. </dependency>
  130. </dependencies>
  131. </dependencyManagement>
  132. <build>
  133. <finalName>${project.artifactId}</finalName>
  134. <plugins>
  135. <plugin>
  136. <groupId>org.springframework.boot</groupId>
  137. <artifactId>spring-boot-maven-plugin</artifactId>
  138. <configuration>
  139. <!--fork : 使用 devtools生效-->
  140. <fork>true</fork>
  141. </configuration>
  142. <executions>
  143. <execution>
  144. <goals>
  145. <goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
  146. </goals>
  147. </execution>
  148. </executions>
  149. </plugin>
  150. </plugins>
  151. </build>
  152. </project>