pom.xml 9.7 KB

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