pom.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  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.zkhz</groupId>
  7. <artifactId>hcp</artifactId>
  8. <version>1.2.2</version>
  9. <packaging>pom</packaging>
  10. <name>hcp</name>
  11. <url>https://www.hcp.cn</url>
  12. <description>hcp微服务系统</description>
  13. <modules>
  14. <module>hcp-auth</module>
  15. <module>hcp-gateway</module>
  16. <module>hcp-visual</module>
  17. <module>hcp-modules</module>
  18. <module>hcp-api</module>
  19. <module>hcp-common</module>
  20. <module>hcp-demo</module>
  21. <module>hcp-register</module>
  22. </modules>
  23. <repositories>
  24. <repository>
  25. <id>aliMaven</id>
  26. <releases>
  27. <enabled>true</enabled>
  28. </releases>
  29. <snapshots>
  30. <enabled>false</enabled>
  31. </snapshots>
  32. <name>aliYun maven</name>
  33. <url>https://maven.aliyun.com/repository/public/</url>
  34. </repository>
  35. </repositories>
  36. <properties>
  37. <hcp.version>1.2.2</hcp.version>
  38. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  39. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  40. <java.version>1.8</java.version>
  41. <spring-boot.version>2.7.18</spring-boot.version>
  42. <spring-cloud.version>2021.0.8</spring-cloud.version>
  43. <spring-cloud-alibaba.version>2021.0.5.0</spring-cloud-alibaba.version>
  44. <alibaba.nacos.version>2.1.1</alibaba.nacos.version>
  45. <spring-boot-admin.version>2.7.10</spring-boot-admin.version>
  46. <spring-boot.mybatis.plus>3.5.7</spring-boot.mybatis.plus>
  47. <swagger.fox.version>3.0.0</swagger.fox.version>
  48. <swagger.core.version>1.6.2</swagger.core.version>
  49. <tobato.version>1.27.2</tobato.version>
  50. <hutool.version>5.8.31</hutool.version>
  51. <kaptcha.version>2.3.3</kaptcha.version>
  52. <pagehelper.boot.version>1.4.7</pagehelper.boot.version>
  53. <alibaba.seata.version>1.5.1</alibaba.seata.version>
  54. <druid.version>1.2.16</druid.version>
  55. <dynamic-ds.version>3.5.2</dynamic-ds.version>
  56. <commons.io.version>2.13.0</commons.io.version>
  57. <velocity.version>2.3</velocity.version>
  58. <fastjson.version>2.0.43</fastjson.version>
  59. <jjwt.version>0.9.1</jjwt.version>
  60. <poi.version>4.1.2</poi.version>
  61. <transmittable-thread-local.version>2.14.4</transmittable-thread-local.version>
  62. <lombok.version>1.18.22</lombok.version>
  63. <oshi.version>6.1.2</oshi.version>
  64. <ganymed-ssh2.version>build250</ganymed-ssh2.version>
  65. <jsch.version>0.1.55</jsch.version>
  66. <aliyun-java-sdk-core.version>4.6.0</aliyun-java-sdk-core.version>
  67. <aliyun-java-sdk-dysmsapi.version>2.2.1</aliyun-java-sdk-dysmsapi.version>
  68. <bitwalker.version>1.21</bitwalker.version>
  69. <filestorage.version>2.2.1</filestorage.version>
  70. <minio.version>8.5.2</minio.version>
  71. <huawei.obs.version>3.22.12</huawei.obs.version>
  72. <aliyun.oss.version>3.16.1</aliyun.oss.version>
  73. <qiniu.kodo.version>7.12.1</qiniu.kodo.version>
  74. <tencent.cos.version>5.6.137</tencent.cos.version>
  75. <baidu.bos.version>0.10.251</baidu.bos.version>
  76. <wxjava.version>4.6.0</wxjava.version>
  77. </properties>
  78. <!-- 依赖声明 -->
  79. <dependencyManagement>
  80. <dependencies>
  81. <!-- SpringCloud 微服务 -->
  82. <dependency>
  83. <groupId>org.springframework.cloud</groupId>
  84. <artifactId>spring-cloud-dependencies</artifactId>
  85. <version>${spring-cloud.version}</version>
  86. <type>pom</type>
  87. <scope>import</scope>
  88. </dependency>
  89. <!-- SpringCloud Alibaba 微服务 -->
  90. <dependency>
  91. <groupId>com.alibaba.cloud</groupId>
  92. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  93. <version>${spring-cloud-alibaba.version}</version>
  94. <type>pom</type>
  95. <scope>import</scope>
  96. </dependency>
  97. <!-- Alibaba Nacos 配置 -->
  98. <dependency>
  99. <groupId>com.alibaba.nacos</groupId>
  100. <artifactId>nacos-client</artifactId>
  101. <version>${alibaba.nacos.version}</version>
  102. </dependency>
  103. <!-- Alibaba Seata 配置 -->
  104. <dependency>
  105. <groupId>io.seata</groupId>
  106. <artifactId>seata-spring-boot-starter</artifactId>
  107. <version>${alibaba.seata.version}</version>
  108. </dependency>
  109. <!-- SpringBoot 依赖配置 -->
  110. <dependency>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-dependencies</artifactId>
  113. <version>${spring-boot.version}</version>
  114. <type>pom</type>
  115. <scope>import</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.springframework.boot</groupId>
  119. <artifactId>spring-boot-starter-mail</artifactId>
  120. <version>${spring-boot.version}</version>
  121. </dependency>
  122. <!-- FastDFS 分布式文件系统 -->
  123. <dependency>
  124. <groupId>com.github.tobato</groupId>
  125. <artifactId>fastdfs-client</artifactId>
  126. <version>${tobato.version}</version>
  127. </dependency>
  128. <!-- Mybatis 依赖配置 -->
  129. <!-- <dependency>-->
  130. <!-- <groupId>org.mybatis.spring.boot</groupId>-->
  131. <!-- <artifactId>mybatis-spring-boot-starter</artifactId>-->
  132. <!-- <version>${spring-boot.mybatis}</version>-->
  133. <!-- </dependency>-->
  134. <!-- Swagger 依赖配置 -->
  135. <dependency>
  136. <groupId>io.swagger</groupId>
  137. <artifactId>swagger-models</artifactId>
  138. <version>${swagger.core.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>io.swagger</groupId>
  142. <artifactId>swagger-annotations</artifactId>
  143. <version>${swagger.core.version}</version>
  144. </dependency>
  145. <!-- 验证码 -->
  146. <dependency>
  147. <groupId>pro.fessional</groupId>
  148. <artifactId>kaptcha</artifactId>
  149. <version>${kaptcha.version}</version>
  150. </dependency>
  151. <!-- io常用工具类 -->
  152. <dependency>
  153. <groupId>commons-io</groupId>
  154. <artifactId>commons-io</artifactId>
  155. <version>${commons.io.version}</version>
  156. </dependency>
  157. <!-- excel工具 -->
  158. <dependency>
  159. <groupId>org.apache.poi</groupId>
  160. <artifactId>poi-ooxml</artifactId>
  161. <version>${poi.version}</version>
  162. </dependency>
  163. <!-- 代码生成使用模板 -->
  164. <dependency>
  165. <groupId>org.apache.velocity</groupId>
  166. <artifactId>velocity-engine-core</artifactId>
  167. <version>${velocity.version}</version>
  168. </dependency>
  169. <!-- JSON 解析器和生成器 -->
  170. <dependency>
  171. <groupId>com.alibaba.fastjson2</groupId>
  172. <artifactId>fastjson2</artifactId>
  173. <version>${fastjson.version}</version>
  174. </dependency>
  175. <!-- JWT -->
  176. <dependency>
  177. <groupId>io.jsonwebtoken</groupId>
  178. <artifactId>jjwt</artifactId>
  179. <version>${jjwt.version}</version>
  180. </dependency>
  181. <!-- 线程传递值 -->
  182. <dependency>
  183. <groupId>com.alibaba</groupId>
  184. <artifactId>transmittable-thread-local</artifactId>
  185. <version>${transmittable-thread-local.version}</version>
  186. </dependency>
  187. <!-- 阿里云短信-->
  188. <dependency>
  189. <groupId>com.aliyun</groupId>
  190. <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
  191. <version>${aliyun-java-sdk-dysmsapi.version}</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.aliyun</groupId>
  195. <artifactId>aliyun-java-sdk-core</artifactId>
  196. <version>${aliyun-java-sdk-core.version}</version>
  197. </dependency>
  198. <!-- 核心模块 -->
  199. <dependency>
  200. <groupId>com.zkhz</groupId>
  201. <artifactId>hcp-common-core</artifactId>
  202. <version>${hcp.version}</version>
  203. </dependency>
  204. <!-- 接口模块 -->
  205. <dependency>
  206. <groupId>com.zkhz</groupId>
  207. <artifactId>hcp-common-swagger</artifactId>
  208. <version>${hcp.version}</version>
  209. </dependency>
  210. <!-- 安全模块 -->
  211. <dependency>
  212. <groupId>com.zkhz</groupId>
  213. <artifactId>hcp-common-security</artifactId>
  214. <version>${hcp.version}</version>
  215. </dependency>
  216. <!-- 权限范围 -->
  217. <dependency>
  218. <groupId>com.zkhz</groupId>
  219. <artifactId>hcp-common-datascope</artifactId>
  220. <version>${hcp.version}</version>
  221. </dependency>
  222. <!-- 多数据源 -->
  223. <dependency>
  224. <groupId>com.zkhz</groupId>
  225. <artifactId>hcp-common-datasource</artifactId>
  226. <version>${hcp.version}</version>
  227. </dependency>
  228. <!-- 分布式事务 -->
  229. <dependency>
  230. <groupId>com.zkhz</groupId>
  231. <artifactId>hcp-common-seata</artifactId>
  232. <version>${hcp.version}</version>
  233. </dependency>
  234. <!-- 日志记录 -->
  235. <dependency>
  236. <groupId>com.zkhz</groupId>
  237. <artifactId>hcp-common-log</artifactId>
  238. <version>${hcp.version}</version>
  239. </dependency>
  240. <!-- 缓存服务 -->
  241. <dependency>
  242. <groupId>com.zkhz</groupId>
  243. <artifactId>hcp-common-redis</artifactId>
  244. <version>${hcp.version}</version>
  245. </dependency>
  246. <!-- 系统接口 -->
  247. <dependency>
  248. <groupId>com.zkhz</groupId>
  249. <artifactId>hcp-api-system</artifactId>
  250. <version>${hcp.version}</version>
  251. </dependency>
  252. <!-- 租户功能 -->
  253. <dependency>
  254. <groupId>com.zkhz</groupId>
  255. <artifactId>hcp-common-mybatisplus</artifactId>
  256. <version>${hcp.version}</version>
  257. </dependency>
  258. <!-- 通知功能 -->
  259. <dependency>
  260. <groupId>com.zkhz</groupId>
  261. <artifactId>hcp-common-message</artifactId>
  262. <version>${hcp.version}</version>
  263. </dependency>
  264. <!-- 获取系统信息 -->
  265. <dependency>
  266. <groupId>com.github.oshi</groupId>
  267. <artifactId>oshi-core</artifactId>
  268. <version>${oshi.version}</version>
  269. </dependency>
  270. <!-- linux链接,远程操作服务器-->
  271. <dependency>
  272. <groupId>com.jcraft</groupId>
  273. <artifactId>jsch</artifactId>
  274. <version>${jsch.version}</version>
  275. </dependency>
  276. <!-- 解析客户端操作系统、浏览器等 -->
  277. <dependency>
  278. <groupId>eu.bitwalker</groupId>
  279. <artifactId>UserAgentUtils</artifactId>
  280. <version>${bitwalker.version}</version>
  281. </dependency>
  282. <dependency>
  283. <groupId>org.dromara.x-file-storage</groupId>
  284. <artifactId>x-file-storage-spring</artifactId>
  285. <version>${filestorage.version}</version>
  286. </dependency>
  287. <!-- <dependency>-->
  288. <!-- <groupId>org.dromara.x-file-storage</groupId>-->
  289. <!-- <artifactId>x-file-storage-core</artifactId>-->
  290. <!-- <version>${filestorage.version}</version>-->
  291. <!-- </dependency>-->
  292. <dependency>
  293. <groupId>com.huaweicloud</groupId>
  294. <artifactId>esdk-obs-java</artifactId>
  295. <version>${huawei.obs.version}</version>
  296. </dependency>
  297. <dependency>
  298. <groupId>com.aliyun.oss</groupId>
  299. <artifactId>aliyun-sdk-oss</artifactId>
  300. <version>${aliyun.oss.version}</version>
  301. </dependency>
  302. <dependency>
  303. <groupId>com.qiniu</groupId>
  304. <artifactId>qiniu-java-sdk</artifactId>
  305. <version>${qiniu.kodo.version}</version>
  306. </dependency>
  307. <dependency>
  308. <groupId>com.qcloud</groupId>
  309. <artifactId>cos_api</artifactId>
  310. <version>${tencent.cos.version}</version>
  311. </dependency>
  312. <dependency>
  313. <groupId>com.baidubce</groupId>
  314. <artifactId>bce-java-sdk</artifactId>
  315. <version>${baidu.bos.version}</version>
  316. </dependency>
  317. <dependency>
  318. <groupId>io.minio</groupId>
  319. <artifactId>minio</artifactId>
  320. <version>${minio.version}</version>
  321. </dependency>
  322. <dependency>
  323. <groupId>com.github.binarywang</groupId>
  324. <artifactId>weixin-java-miniapp</artifactId>
  325. <version>${wxjava.version}</version>
  326. </dependency>
  327. <dependency>
  328. <groupId>com.github.binarywang</groupId>
  329. <artifactId>weixin-java-pay</artifactId>
  330. <version>${wxjava.version}</version>
  331. </dependency>
  332. </dependencies>
  333. </dependencyManagement>
  334. <dependencies>
  335. <!-- bootstrap 启动器 -->
  336. <dependency>
  337. <groupId>org.springframework.cloud</groupId>
  338. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  339. </dependency>
  340. <!-- spring boot 配置所需依赖 -->
  341. <dependency>
  342. <groupId>org.springframework.boot</groupId>
  343. <artifactId>spring-boot-configuration-processor</artifactId>
  344. <optional>true</optional>
  345. </dependency>
  346. <!--lombok-->
  347. <dependency>
  348. <groupId>org.projectlombok</groupId>
  349. <artifactId>lombok</artifactId>
  350. <version>${lombok.version}</version>
  351. </dependency>
  352. <!-- mybatis-plus 增强CRUD -->
  353. <dependency>
  354. <groupId>com.baomidou</groupId>
  355. <artifactId>mybatis-plus-boot-starter</artifactId>
  356. <version>${spring-boot.mybatis.plus}</version>
  357. </dependency>
  358. <!-- &lt;!&ndash; pagehelper 分页插件 &ndash;&gt;-->
  359. <!-- <dependency>-->
  360. <!-- <groupId>com.github.pagehelper</groupId>-->
  361. <!-- <artifactId>pagehelper-spring-boot-starter</artifactId>-->
  362. <!-- <version>${pagehelper.boot.version}</version>-->
  363. <!-- </dependency>-->
  364. <!-- hutool -->
  365. <dependency>
  366. <groupId>cn.hutool</groupId>
  367. <artifactId>hutool-all</artifactId>
  368. <version>${hutool.version}</version>
  369. </dependency>
  370. </dependencies>
  371. <build>
  372. <finalName>${project.name}</finalName>
  373. <resources>
  374. <resource>
  375. <directory>src/main/resources</directory>
  376. <filtering>true</filtering>
  377. </resource>
  378. </resources>
  379. <plugins>
  380. <plugin>
  381. <groupId>org.apache.maven.plugins</groupId>
  382. <artifactId>maven-compiler-plugin</artifactId>
  383. <configuration>
  384. <source>${java.version}</source>
  385. <target>${java.version}</target>
  386. <encoding>${project.build.sourceEncoding}</encoding>
  387. </configuration>
  388. </plugin>
  389. </plugins>
  390. <pluginManagement>
  391. <plugins>
  392. <plugin>
  393. <groupId>org.springframework.boot</groupId>
  394. <artifactId>spring-boot-maven-plugin</artifactId>
  395. <version>${spring-boot.version}</version>
  396. <executions>
  397. <execution>
  398. <goals>
  399. <goal>repackage</goal>
  400. </goals>
  401. </execution>
  402. </executions>
  403. </plugin>
  404. </plugins>
  405. </pluginManagement>
  406. </build>
  407. <profiles>
  408. <profile>
  409. <id>dev</id>
  410. <properties>
  411. <!-- 环境标识,需要与配置文件的名称相对应 -->
  412. <profiles.active>dev</profiles.active>
  413. </properties>
  414. <activation>
  415. <!-- 默认环境 -->
  416. <activeByDefault>true</activeByDefault>
  417. </activation>
  418. </profile>
  419. <profile>
  420. <id>local</id>
  421. <properties>
  422. <!-- 环境标识,需要与配置文件的名称相对应 -->
  423. <profiles.active>local</profiles.active>
  424. </properties>
  425. <activation>
  426. <!-- 默认环境 -->
  427. <activeByDefault>false</activeByDefault>
  428. </activation>
  429. </profile>
  430. <profile>
  431. <id>prod</id>
  432. <properties>
  433. <!-- 环境标识,需要与配置文件的名称相对应 -->
  434. <profiles.active>prod</profiles.active>
  435. </properties>
  436. <activation>
  437. <!-- 默认环境 -->
  438. <activeByDefault>false</activeByDefault>
  439. </activation>
  440. </profile>
  441. </profiles>
  442. </project>