智慧水务管理系统 - 精河县供水工程综合管理平台

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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
  5. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>com.water</groupId>
  8. <artifactId>water-iot-platform</artifactId>
  9. <version>1.0.0</version>
  10. <packaging>jar</packaging>
  11. <name>Water IoT Platform</name>
  12. <description>水务物联网平台 - 多协议设备接入与感知层标准建立</description>
  13. <parent>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-starter-parent</artifactId>
  16. <version>3.1.0</version>
  17. <relativePath/>
  18. </parent>
  19. <properties>
  20. <java.version>17</java.version>
  21. <maven.compiler.source>17</maven.compiler.source>
  22. <maven.compiler.target>17</maven.compiler.target>
  23. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  24. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  25. <!-- 依赖版本 -->
  26. <spring-boot.version>3.1.0</spring-boot.version>
  27. <spring-cloud.version>2022.0.0</spring-cloud.version>
  28. <lombok.version>1.18.30</lombok.version>
  29. <jackson.version>2.15.2</jackson.version>
  30. <postgresql.version>42.6.0</postgresql.version>
  31. <mqtt.version>1.2.5</mqtt.version>
  32. <redis.version>3.2.1</redis.version>
  33. <mapstruct.version>1.5.5.Final</mapstruct.version>
  34. <testcontainers.version>1.19.0</testcontainers.version>
  35. </properties>
  36. <dependencies>
  37. <!-- Spring Boot Starters -->
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-web</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-data-jpa</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-data-redis</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-websocket</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-security</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-validation</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-actuator</artifactId>
  65. </dependency>
  66. <!-- Spring Cloud -->
  67. <dependency>
  68. <groupId>org.springframework.cloud</groupId>
  69. <artifactId>spring-cloud-starter-circuitbreaker-reactor</artifactId>
  70. </dependency>
  71. <!-- 数据库 -->
  72. <dependency>
  73. <groupId>org.postgresql</groupId>
  74. <artifactId>postgresql</artifactId>
  75. <version>${postgresql.version}</version>
  76. <scope>runtime</scope>
  77. </dependency>
  78. <!-- MQTT -->
  79. <dependency>
  80. <groupId>org.eclipse.paho</groupId>
  81. <artifactId>org.eclipse.paho.client.mqttv3</artifactId>
  82. <version>${mqtt.version}</version>
  83. </dependency>
  84. <!-- JSON处理 -->
  85. <dependency>
  86. <groupId>com.fasterxml.jackson.core</groupId>
  87. <artifactId>jackson-databind</artifactId>
  88. <version>${jackson.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>com.fasterxml.jackson.core</groupId>
  92. <artifactId>jackson-core</artifactId>
  93. <version>${jackson.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>com.fasterxml.jackson.core</groupId>
  97. <artifactId>jackson-annotations</artifactId>
  98. <version>${jackson.version}</version>
  99. </dependency>
  100. <!-- Lombok -->
  101. <dependency>
  102. <groupId>org.projectlombok</groupId>
  103. <artifactId>lombok</artifactId>
  104. <version>${lombok.version}</version>
  105. <optional>true</optional>
  106. </dependency>
  107. <!-- MapStruct -->
  108. <dependency>
  109. <groupId>org.mapstruct</groupId>
  110. <artifactId>mapstruct</artifactId>
  111. <version>${mapstruct.version}</version>
  112. </dependency>
  113. <!-- 测试 -->
  114. <dependency>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-starter-test</artifactId>
  117. <scope>test</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.springframework.security</groupId>
  121. <artifactId>spring-security-test</artifactId>
  122. <scope>test</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.testcontainers</groupId>
  126. <artifactId>junit-jupiter</artifactId>
  127. <version>${testcontainers.version}</version>
  128. <scope>test</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.testcontainers</groupId>
  132. <artifactId>postgresql</artifactId>
  133. <version>${testcontainers.version}</version>
  134. <scope>test</scope>
  135. </dependency>
  136. <!-- 其他工具 -->
  137. <dependency>
  138. <groupId>org.apache.commons</groupId>
  139. <artifactId>commons-lang3</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.apache.commons</groupId>
  143. <artifactId>commons-collections4</artifactId>
  144. <version>4.4</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>commons-io</groupId>
  148. <artifactId>commons-io</artifactId>
  149. <version>2.13.0</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.slf4j</groupId>
  153. <artifactId>slf4j-api</artifactId>
  154. </dependency>
  155. <dependency>
  156. <groupId>ch.qos.logback</groupId>
  157. <artifactId>logback-classic</artifactId>
  158. </dependency>
  159. <!-- 文档生成 -->
  160. <dependency>
  161. <groupId>org.springdoc</groupId>
  162. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  163. <version>2.2.0</version>
  164. </dependency>
  165. </dependencies>
  166. <build>
  167. <plugins>
  168. <!-- Maven Compiler Plugin -->
  169. <plugin>
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-compiler-plugin</artifactId>
  172. <version>3.11.0</version>
  173. <configuration>
  174. <source>${java.version}</source>
  175. <target>${java.version}</target>
  176. <annotationProcessorPaths>
  177. <path>
  178. <groupId>org.projectlombok</groupId>
  179. <artifactId>lombok</artifactId>
  180. <version>${lombok.version}</version>
  181. </path>
  182. <path>
  183. <groupId>org.mapstruct</groupId>
  184. <artifactId>mapstruct-processor</artifactId>
  185. <version>${mapstruct.version}</version>
  186. </path>
  187. </annotationProcessorPaths>
  188. </configuration>
  189. </plugin>
  190. <!-- Spring Boot Maven Plugin -->
  191. <plugin>
  192. <groupId>org.springframework.boot</groupId>
  193. <artifactId>spring-boot-maven-plugin</artifactId>
  194. <version>${spring-boot.version}</version>
  195. <configuration>
  196. <excludes>
  197. <exclude>
  198. <groupId>org.projectlombok</groupId>
  199. <artifactId>lombok</artifactId>
  200. </exclude>
  201. </excludes>
  202. </configuration>
  203. </plugin>
  204. <!-- Docker Plugin -->
  205. <plugin>
  206. <groupId>com.spotify</groupId>
  207. <artifactId>dockerfile-maven-plugin</artifactId>
  208. <version>1.4.13</version>
  209. <configuration>
  210. <repository>water-iot-platform</repository>
  211. <tag>latest</tag>
  212. <buildArgs>
  213. <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
  214. </buildArgs>
  215. </configuration>
  216. </plugin>
  217. <!-- JaCoCo Code Coverage -->
  218. <plugin>
  219. <groupId>org.jacoco</groupId>
  220. <artifactId>jacoco-maven-plugin</artifactId>
  221. <version>0.8.10</version>
  222. <executions>
  223. <execution>
  224. <goals>
  225. <goal>prepare-agent</goal>
  226. </goals>
  227. </execution>
  228. <execution>
  229. <id>report</id>
  230. <phase>test</phase>
  231. <goals>
  232. <goal>report</goal>
  233. </goals>
  234. </execution>
  235. </executions>
  236. </plugin>
  237. </plugins>
  238. <resources>
  239. <resource>
  240. <directory>src/main/resources</directory>
  241. <filtering>true</filtering>
  242. </resource>
  243. </resources>
  244. </build>
  245. <repositories>
  246. <repository>
  247. <id>central</id>
  248. <url>https://repo.maven.apache.org/maven2</url>
  249. </repository>
  250. <repository>
  251. <id>spring-milestones</id>
  252. <url>https://repo.spring.io/milestone</url>
  253. </repository>
  254. </repositories>
  255. <pluginRepositories>
  256. <pluginRepository>
  257. <id>central</id>
  258. <url>https://repo.maven.apache.org/maven2</url>
  259. </pluginRepository>
  260. <pluginRepository>
  261. <id>spring-milestones</id>
  262. <url>https://repo.spring.io/milestone</url>
  263. </pluginRepository>
  264. </pluginRepositories>
  265. <profiles>
  266. <profile>
  267. <id>dev</id>
  268. <activation>
  269. <activeByDefault>true</activeByDefault>
  270. </activation>
  271. <properties>
  272. <spring.profiles.active>dev</spring.profiles.active>
  273. </properties>
  274. </profile>
  275. <profile>
  276. <id>prod</id>
  277. <properties>
  278. <spring.profiles.active>prod</spring.profiles.active>
  279. </properties>
  280. </profile>
  281. <profile>
  282. <id>test</id>
  283. <properties>
  284. <spring.profiles.active>test</spring.profiles.active>
  285. </properties>
  286. </profile>
  287. </profiles>
  288. </project>