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

pom.xml 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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>com.xayunmei</groupId>
  7. <artifactId>wm-parent</artifactId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. <packaging>pom</packaging>
  10. <name>Water Management System Parent</name>
  11. <description>供水管理系统父工程</description>
  12. <modules>
  13. <module>wm-gateway</module>
  14. <module>wm-base</module>
  15. <module>wm-iot</module>
  16. <module>wm-data-engine</module>
  17. <module>wm-bpm</module>
  18. <module>wm-production</module>
  19. <module>wm-revenue</module>
  20. <module>wm-patrol</module>
  21. <module>wm-bi</module>
  22. <module>wm-notify</module>
  23. <module>wm-job</module>
  24. </modules>
  25. <properties>
  26. <java.version>17</java.version>
  27. <maven.compiler.source>${java.version}</maven.compiler.source>
  28. <maven.compiler.target>${java.version}</maven.compiler.target>
  29. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  30. <!-- Spring Cloud Alibaba -->
  31. <spring-boot.version>3.2.1</spring-boot.version>
  32. <spring-cloud.version>2023.0.0</spring-cloud.version>
  33. <spring-cloud-alibaba.version>2023.0.0.0</spring-cloud-alibaba.version>
  34. <!-- Sa-Token -->
  35. <sa-token.version>1.39.0</sa-token.version>
  36. <!-- MyBatis-Plus -->
  37. <mybatis-plus.version>3.5.5</mybatis-plus.version>
  38. <!-- Database -->
  39. <mysql.version>8.0.33</mysql.version>
  40. <postgresql.version>42.6.0</postgresql.version>
  41. <tdengine.version>3.5.0.0</tdengine.version>
  42. <!-- Redis -->
  43. <redis.version>4.3.1</redis.version>
  44. <!-- MQ -->
  45. <kafka.version>3.7.0</kafka.version>
  46. <rocketmq.version>2.2.3</rocketmq.version>
  47. <!-- Search -->
  48. <elasticsearch.version>8.11.0</elasticsearch.version>
  49. <!-- Message Queue -->
  50. <rocketmq-spring-boot-starter.version>2.2.3</rocketmq-spring-boot-starter.version>
  51. <!-- Jackson -->
  52. <jackson.version>2.15.3</jackson.version>
  53. <!-- Lombok -->
  54. <lombok.version>1.18.30</lombok.version>
  55. <!-- MapStruct -->
  56. <mapstruct.version>1.5.5.Final</mapstruct.version>
  57. <!-- Test -->
  58. <junit.version>5.10.1</junit.version>
  59. <mockito.version>5.5.0</mockito.version>
  60. <testcontainers.version>1.19.3</testcontainers.version>
  61. </properties>
  62. <dependencyManagement>
  63. <dependencies>
  64. <!-- Spring Boot -->
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-dependencies</artifactId>
  68. <version>${spring-boot.version}</version>
  69. <type>pom</type>
  70. <scope>import</scope>
  71. </dependency>
  72. <!-- Spring Cloud -->
  73. <dependency>
  74. <groupId>org.springframework.cloud</groupId>
  75. <artifactId>spring-cloud-dependencies</artifactId>
  76. <version>${spring-cloud.version}</version>
  77. <type>pom</type>
  78. <scope>import</scope>
  79. </dependency>
  80. <!-- Spring Cloud Alibaba -->
  81. <dependency>
  82. <groupId>com.alibaba.cloud</groupId>
  83. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  84. <version>${spring-cloud-alibaba.version}</version>
  85. <type>pom</type>
  86. <scope>import</scope>
  87. </dependency>
  88. <!-- Sa-Token -->
  89. <dependency>
  90. <groupId>cn.dev33</groupId>
  91. <artifactId>sa-token-spring-boot-starter</artifactId>
  92. <version>${sa-token.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>cn.dev33</groupId>
  96. <artifactId>sa-token-jwt</artifactId>
  97. <version>${sa-token.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>cn.dev33</groupId>
  101. <artifactId>sa-token-dao-redis-jackson</artifactId>
  102. <version>${sa-token.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>cn.dev33</groupId>
  106. <artifactId>sa-token-alibaba-druid</artifactId>
  107. <version>${sa-token.version}</version>
  108. </dependency>
  109. <!-- MyBatis-Plus -->
  110. <dependency>
  111. <groupId>com.baomidou</groupId>
  112. <artifactId>mybatis-plus-boot-starter</artifactId>
  113. <version>${mybatis-plus.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.baomidou</groupId>
  117. <artifactId>mybatis-plus-generator</artifactId>
  118. <version>${mybatis-plus.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.baomidou</groupId>
  122. <artifactId>mybatis-plus-annotation</artifactId>
  123. <version>${mybatis-plus.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.baomidou</groupId>
  127. <artifactId>mybatis-plus-extension</artifactId>
  128. <version>${mybatis-plus.version}</version>
  129. </dependency>
  130. <!-- Database -->
  131. <dependency>
  132. <groupId>mysql</groupId>
  133. <artifactId>mysql-connector-java</artifactId>
  134. <version>${mysql.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.postgresql</groupId>
  138. <artifactId>postgresql</artifactId>
  139. <version>${postgresql.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.taosdata.jdbc</groupId>
  143. <artifactId>taos-jdbcdriver</artifactId>
  144. <version>${tdengine.version}</version>
  145. </dependency>
  146. <!-- Redis -->
  147. <dependency>
  148. <groupId>org.springframework.boot</groupId>
  149. <artifactId>spring-boot-starter-data-redis</artifactId>
  150. </dependency>
  151. <!-- Message Queue -->
  152. <dependency>
  153. <groupId>org.springframework.kafka</groupId>
  154. <artifactId>spring-kafka</artifactId>
  155. <version>${kafka.version}</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.apache.rocketmq</groupId>
  159. <artifactId>rocketmq-spring-boot-starter</artifactId>
  160. <version>${rocketmq.version}</version>
  161. </dependency>
  162. <!-- Search -->
  163. <dependency>
  164. <groupId>org.springframework.boot</groupId>
  165. <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
  166. <version>${elasticsearch.version}</version>
  167. </dependency>
  168. <!-- Jackson -->
  169. <dependency>
  170. <groupId>com.fasterxml.jackson.core</groupId>
  171. <artifactId>jackson-databind</artifactId>
  172. <version>${jackson.version}</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>com.fasterxml.jackson.core</groupId>
  176. <artifactId>jackson-core</artifactId>
  177. <version>${jackson.version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>com.fasterxml.jackson.core</groupId>
  181. <artifactId>jackson-annotations</artifactId>
  182. <version>${jackson.version}</version>
  183. </dependency>
  184. <!-- Lombok -->
  185. <dependency>
  186. <groupId>org.projectlombok</groupId>
  187. <artifactId>lombok</artifactId>
  188. <version>${lombok.version}</version>
  189. <optional>true</optional>
  190. </dependency>
  191. <!-- MapStruct -->
  192. <dependency>
  193. <groupId>org.mapstruct</groupId>
  194. <artifactId>mapstruct</artifactId>
  195. <version>${mapstruct.version}</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.mapstruct</groupId>
  199. <artifactId>mapstruct-processor</artifactId>
  200. <version>${mapstruct.version}</version>
  201. <optional>true</optional>
  202. </dependency>
  203. <!-- Test -->
  204. <dependency>
  205. <groupId>org.junit.jupiter</groupId>
  206. <artifactId>junit-jupiter</artifactId>
  207. <version>${junit.version}</version>
  208. <scope>test</scope>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.mockito</groupId>
  212. <artifactId>mockito-core</artifactId>
  213. <version>${mockito.version}</version>
  214. <scope>test</scope>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.testcontainers</groupId>
  218. <artifactId>junit-jupiter</artifactId>
  219. <version>${testcontainers.version}</version>
  220. <scope>test</scope>
  221. </dependency>
  222. </dependencies>
  223. </dependencyManagement>
  224. <build>
  225. <plugins>
  226. <plugin>
  227. <groupId>org.apache.maven.plugins</groupId>
  228. <artifactId>maven-compiler-plugin</artifactId>
  229. <version>3.11.0</version>
  230. <configuration>
  231. <source>${java.version}</source>
  232. <target>${java.version}</target>
  233. <encoding>${project.build.sourceEncoding}</encoding>
  234. </configuration>
  235. </plugin>
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-surefire-plugin</artifactId>
  239. <version>3.1.2</version>
  240. </plugin>
  241. <plugin>
  242. <groupId>org.apache.maven.plugins</groupId>
  243. <artifactId>maven-source-plugin</artifactId>
  244. <version>3.3.0</version>
  245. <executions>
  246. <execution>
  247. <phase>package</phase>
  248. <goals>
  249. <goal>jar-no-fork</goal>
  250. </goals>
  251. </execution>
  252. </executions>
  253. </plugin>
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-javadoc-plugin</artifactId>
  257. <version>3.5.0</version>
  258. <executions>
  259. <execution>
  260. <phase>package</phase>
  261. <goals>
  262. <goal>jar</goal>
  263. </goals>
  264. </execution>
  265. </executions>
  266. </plugin>
  267. <plugin>
  268. <groupId>org.projectlombok</groupId>
  269. <artifactId>lombok-maven-plugin</artifactId>
  270. <version>1.18.20.0</version>
  271. <executions>
  272. <execution>
  273. <phase>generate-sources</phase>
  274. <goals>
  275. <goal>delombok</goal>
  276. </goals>
  277. <configuration>
  278. <sourceDirectory>src/main/java</sourceDirectory>
  279. <outputDirectory>${project.build.directory}/generated-sources/delombok</outputDirectory>
  280. </configuration>
  281. </execution>
  282. </executions>
  283. </plugin>
  284. <plugin>
  285. <groupId>org.apache.maven.plugins</groupId>
  286. <artifactId>maven-checkstyle-plugin</artifactId>
  287. <version>3.3.0</version>
  288. <dependencies>
  289. <dependency>
  290. <groupId>com.puppycrawl.tools</groupId>
  291. <artifactId>checkstyle</artifactId>
  292. <version>10.12.3</version>
  293. </dependency>
  294. </dependencies>
  295. <configuration>
  296. <configLocation>checkstyle.xml</configLocation>
  297. <encoding>UTF-8</encoding>
  298. <consoleOutput>true</consoleOutput>
  299. <failsOnError>true</failsOnError>
  300. <failOnViolation>true</failOnViolation>
  301. <violationSeverity>warning</violationSeverity>
  302. </configuration>
  303. <executions>
  304. <execution>
  305. <goals>
  306. <goal>check</goal>
  307. </goals>
  308. </execution>
  309. </executions>
  310. </plugin>
  311. </plugins>
  312. </build>
  313. </project>