pom.xml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~
  4. ~ Copyright (c) 2018-2025, hnqz All rights reserved.
  5. ~
  6. ~ Redistribution and use in source and binary forms, with or without
  7. ~ modification, are permitted provided that the following conditions are met:
  8. ~
  9. ~ Redistributions of source code must retain the above copyright notice,
  10. ~ this list of conditions and the following disclaimer.
  11. ~ Redistributions in binary form must reproduce the above copyright
  12. ~ notice, this list of conditions and the following disclaimer in the
  13. ~ documentation and/or other materials provided with the distribution.
  14. ~ Neither the name of the pig4cloud.com developer nor the names of its
  15. ~ contributors may be used to endorse or promote products derived from
  16. ~ this software without specific prior written permission.
  17. ~ Author: hnqz
  18. ~
  19. -->
  20. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  22. <modelVersion>4.0.0</modelVersion>
  23. <groupId>com.qunzhixinxi</groupId>
  24. <artifactId>hnqz</artifactId>
  25. <version>3.9.0</version>
  26. <name>${project.artifactId}</name>
  27. <packaging>pom</packaging>
  28. <organization>
  29. <name>pig4cloud</name>
  30. <url>https://www.pig4cloud.com</url>
  31. </organization>
  32. <properties>
  33. <spring-boot.version>2.3.1.RELEASE</spring-boot.version>
  34. <spring-cloud.version>Hoxton.SR5</spring-cloud.version>
  35. <spring-cloud-alibaba.version>2.2.1.RELEASE</spring-cloud-alibaba.version>
  36. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  37. <maven.compiler.source>1.8</maven.compiler.source>
  38. <maven.compiler.target>1.8</maven.compiler.target>
  39. <maven.compiler.version>3.8.1</maven.compiler.version>
  40. <spring.checkstyle.version>0.0.22</spring.checkstyle.version>
  41. <git.commit.version>2.2.5</git.commit.version>
  42. <spring-boot-admin.version>2.2.3</spring-boot-admin.version>
  43. <hutool.version>5.3.7</hutool.version>
  44. <kaptcha.version>1.2.0</kaptcha.version>
  45. <swagger.fox.version>2.9.2</swagger.fox.version>
  46. <knife4j.version>2.0.3</knife4j.version>
  47. <velocity.version>1.7</velocity.version>
  48. <lcn.version>4.1.0</lcn.version>
  49. <jasypt.version>2.1.1</jasypt.version>
  50. <ttl.version>2.11.4</ttl.version>
  51. <aws.version>1.11.543</aws.version>
  52. <xxl.job.version>2.2.0</xxl.job.version>
  53. <activiti.version>5.22.0</activiti.version>
  54. <docker.registry>172.17.0.111</docker.registry>
  55. <docker.host>http://172.17.0.111:2375</docker.host>
  56. <docker.namespace>library</docker.namespace>
  57. <docker.username>admin</docker.username>
  58. <docker.password>Harbor12345</docker.password>
  59. <docker.plugin.version>0.32.0</docker.plugin.version>
  60. <!-- 默认忽略docker构建 -->
  61. <docker.skip>true</docker.skip>
  62. </properties>
  63. <dependencies>
  64. <!--配置文件处理器-->
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-configuration-processor</artifactId>
  68. <optional>true</optional>
  69. </dependency>
  70. <!--jasypt配置文件加解密-->
  71. <dependency>
  72. <groupId>com.github.ulisesbocchio</groupId>
  73. <artifactId>jasypt-spring-boot-starter</artifactId>
  74. <version>${jasypt.version}</version>
  75. </dependency>
  76. <!--监控-->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-actuator</artifactId>
  80. </dependency>
  81. <!--监控客户端-->
  82. <dependency>
  83. <groupId>de.codecentric</groupId>
  84. <artifactId>spring-boot-admin-starter-client</artifactId>
  85. <version>${spring-boot-admin.version}</version>
  86. </dependency>
  87. <!--Lombok-->
  88. <dependency>
  89. <groupId>org.projectlombok</groupId>
  90. <artifactId>lombok</artifactId>
  91. <scope>provided</scope>
  92. </dependency>
  93. <!--测试依赖-->
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-test</artifactId>
  97. <scope>test</scope>
  98. </dependency>
  99. </dependencies>
  100. <modules>
  101. <module>hnqz-register</module>
  102. <module>hnqz-gateway</module>
  103. <module>hnqz-auth</module>
  104. <module>hnqz-upms</module>
  105. <module>hnqz-common</module>
  106. <module>hnqz-visual</module>
  107. </modules>
  108. <dependencyManagement>
  109. <dependencies>
  110. <!--hnqz 公共版本定义-->
  111. <dependency>
  112. <groupId>com.qunzhixinxi</groupId>
  113. <artifactId>hnqz-common-bom</artifactId>
  114. <version>${project.version}</version>
  115. <type>pom</type>
  116. <scope>import</scope>
  117. </dependency>
  118. <!--spring boot 公共版本定义-->
  119. <dependency>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-dependencies</artifactId>
  122. <version>${spring-boot.version}</version>
  123. <type>pom</type>
  124. <scope>import</scope>
  125. </dependency>
  126. <!--spring cloud 公共版本定义-->
  127. <dependency>
  128. <groupId>org.springframework.cloud</groupId>
  129. <artifactId>spring-cloud-dependencies</artifactId>
  130. <version>${spring-cloud.version}</version>
  131. <type>pom</type>
  132. <scope>import</scope>
  133. </dependency>
  134. <!--spring cloud alibaba-->
  135. <dependency>
  136. <groupId>com.alibaba.cloud</groupId>
  137. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  138. <version>${spring-cloud-alibaba.version}</version>
  139. <type>pom</type>
  140. <scope>import</scope>
  141. </dependency>
  142. <!--web 模块-->
  143. <dependency>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-starter-web</artifactId>
  146. <version>${spring-boot.version}</version>
  147. <exclusions>
  148. <!--排除tomcat依赖-->
  149. <exclusion>
  150. <artifactId>spring-boot-starter-tomcat</artifactId>
  151. <groupId>org.springframework.boot</groupId>
  152. </exclusion>
  153. </exclusions>
  154. </dependency>
  155. </dependencies>
  156. </dependencyManagement>
  157. <build>
  158. <finalName>${project.name}</finalName>
  159. <resources>
  160. <resource>
  161. <directory>src/main/resources</directory>
  162. <filtering>true</filtering>
  163. </resource>
  164. </resources>
  165. <pluginManagement>
  166. <plugins>
  167. <!--spring boot 默认插件-->
  168. <plugin>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-maven-plugin</artifactId>
  171. <version>${spring-boot.version}</version>
  172. <executions>
  173. <execution>
  174. <goals>
  175. <goal>repackage</goal>
  176. </goals>
  177. </execution>
  178. </executions>
  179. </plugin>
  180. <!--maven docker 打包插件 -->
  181. <plugin>
  182. <groupId>io.fabric8</groupId>
  183. <artifactId>docker-maven-plugin</artifactId>
  184. <version>${docker.plugin.version}</version>
  185. <configuration>
  186. <dockerHost>${docker.host}</dockerHost>
  187. <registry>${docker.registry}</registry>
  188. <authConfig>
  189. <push>
  190. <username>${docker.username}</username>
  191. <password>${docker.password}</password>
  192. </push>
  193. </authConfig>
  194. <images>
  195. <image>
  196. <name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
  197. <build>
  198. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  199. </build>
  200. </image>
  201. </images>
  202. </configuration>
  203. </plugin>
  204. </plugins>
  205. </pluginManagement>
  206. <plugins>
  207. <!--代码格式插件,默认使用spring 规则-->
  208. <plugin>
  209. <groupId>io.spring.javaformat</groupId>
  210. <artifactId>spring-javaformat-maven-plugin</artifactId>
  211. <version>${spring.checkstyle.version}</version>
  212. </plugin>
  213. <!--代码编译指定版本插件-->
  214. <plugin>
  215. <groupId>org.apache.maven.plugins</groupId>
  216. <artifactId>maven-compiler-plugin</artifactId>
  217. <version>${maven.compiler.version}</version>
  218. <configuration>
  219. <target>${maven.compiler.target}</target>
  220. <source>${maven.compiler.source}</source>
  221. <encoding>UTF-8</encoding>
  222. <skip>true</skip>
  223. </configuration>
  224. </plugin>
  225. <!--打包关联最新 git commit 信息插件-->
  226. <plugin>
  227. <groupId>pl.project13.maven</groupId>
  228. <artifactId>git-commit-id-plugin</artifactId>
  229. <version>${git.commit.version}</version>
  230. </plugin>
  231. </plugins>
  232. </build>
  233. <pluginRepositories>
  234. <pluginRepository>
  235. <id>aliyun-plugin</id>
  236. <url>https://maven.aliyun.com/repository/public</url>
  237. <releases>
  238. <enabled>true</enabled>
  239. </releases>
  240. <snapshots>
  241. <enabled>false</enabled>
  242. </snapshots>
  243. </pluginRepository>
  244. </pluginRepositories>
  245. <repositories>
  246. <!--阿里云代理-->
  247. <repository>
  248. <id>aliyun</id>
  249. <name>aliyun</name>
  250. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  251. </repository>
  252. </repositories>
  253. <profiles>
  254. <profile>
  255. <id>dev</id>
  256. <properties>
  257. <!-- 环境标识,需要与配置文件的名称相对应 -->
  258. <profiles.active>dev</profiles.active>
  259. <profiles.namespace>639c1543-7221-46c9-a3ab-8993a6c44b19</profiles.namespace>
  260. </properties>
  261. <activation>
  262. <!-- 默认环境 -->
  263. <activeByDefault>true</activeByDefault>
  264. <profiles.namespace>842ded71-0bc3-41fe-8a64-460c9d091fdc</profiles.namespace>
  265. </activation>
  266. </profile>
  267. <profile>
  268. <id>test</id>
  269. <properties>
  270. <profiles.active>test</profiles.active>
  271. <profiles.namespace>dad4fedb-3a24-4560-b6cf-d9aafa3adc71</profiles.namespace>
  272. </properties>
  273. </profile>
  274. <profile>
  275. <id>prod</id>
  276. <properties>
  277. <profiles.active>prod</profiles.active>
  278. <profiles.namespace>e2658ecc-4abf-418e-bd91-6e8366fd0912</profiles.namespace>
  279. </properties>
  280. </profile>
  281. </profiles>
  282. </project>