pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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. <properties>
  11. <spring-boot.version>2.3.12.RELEASE</spring-boot.version>
  12. <spring-cloud.version>Hoxton.SR8</spring-cloud.version>
  13. <spring-cloud-alibaba.version>2.2.1.RELEASE</spring-cloud-alibaba.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <maven.compiler.source>1.8</maven.compiler.source>
  16. <maven.compiler.target>1.8</maven.compiler.target>
  17. <maven.compiler.version>3.8.1</maven.compiler.version>
  18. <spring.checkstyle.version>0.0.22</spring.checkstyle.version>
  19. <git.commit.version>2.2.5</git.commit.version>
  20. <spring-boot-admin.version>2.2.3</spring-boot-admin.version>
  21. <hutool.version>5.7.7</hutool.version>
  22. <kaptcha.version>1.2.0</kaptcha.version>
  23. <velocity.version>1.7</velocity.version>
  24. <lcn.version>4.1.0</lcn.version>
  25. <jasypt.version>2.1.1</jasypt.version>
  26. <ttl.version>2.11.4</ttl.version>
  27. <aws.version>1.11.543</aws.version>
  28. <xxl.job.version>2.2.0</xxl.job.version>
  29. <activiti.version>5.22.0</activiti.version>
  30. <docker.registry>172.17.0.111</docker.registry>
  31. <docker.host>http://172.17.0.111:2375</docker.host>
  32. <docker.namespace>library</docker.namespace>
  33. <docker.username>admin</docker.username>
  34. <docker.password>Harbor12345</docker.password>
  35. <docker.plugin.version>0.32.0</docker.plugin.version>
  36. <!-- 默认忽略docker构建 -->
  37. <docker.skip>true</docker.skip>
  38. </properties>
  39. <dependencies>
  40. <!--配置文件处理器-->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-configuration-processor</artifactId>
  44. <optional>true</optional>
  45. </dependency>
  46. <!--jasypt配置文件加解密-->
  47. <dependency>
  48. <groupId>com.github.ulisesbocchio</groupId>
  49. <artifactId>jasypt-spring-boot-starter</artifactId>
  50. <version>${jasypt.version}</version>
  51. </dependency>
  52. <!--监控-->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-actuator</artifactId>
  56. </dependency>
  57. <!--监控客户端-->
  58. <dependency>
  59. <groupId>de.codecentric</groupId>
  60. <artifactId>spring-boot-admin-starter-client</artifactId>
  61. <version>${spring-boot-admin.version}</version>
  62. </dependency>
  63. <!--Lombok-->
  64. <dependency>
  65. <groupId>org.projectlombok</groupId>
  66. <artifactId>lombok</artifactId>
  67. <scope>provided</scope>
  68. </dependency>
  69. <!--测试依赖-->
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-starter-test</artifactId>
  73. <scope>test</scope>
  74. </dependency>
  75. </dependencies>
  76. <modules>
  77. <module>hnqz-gateway</module>
  78. <module>hnqz-auth</module>
  79. <module>hnqz-upms</module>
  80. <module>hnqz-common</module>
  81. <module>hnqz-visual</module>
  82. </modules>
  83. <dependencyManagement>
  84. <dependencies>
  85. <!--hnqz 公共版本定义-->
  86. <dependency>
  87. <groupId>com.qunzhixinxi</groupId>
  88. <artifactId>hnqz-common-bom</artifactId>
  89. <version>${project.version}</version>
  90. <type>pom</type>
  91. <scope>import</scope>
  92. </dependency>
  93. <!--spring boot 公共版本定义-->
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-dependencies</artifactId>
  97. <version>${spring-boot.version}</version>
  98. <type>pom</type>
  99. <scope>import</scope>
  100. </dependency>
  101. <!--spring cloud 公共版本定义-->
  102. <dependency>
  103. <groupId>org.springframework.cloud</groupId>
  104. <artifactId>spring-cloud-dependencies</artifactId>
  105. <version>${spring-cloud.version}</version>
  106. <type>pom</type>
  107. <scope>import</scope>
  108. </dependency>
  109. <!--spring cloud alibaba-->
  110. <dependency>
  111. <groupId>com.alibaba.cloud</groupId>
  112. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  113. <version>${spring-cloud-alibaba.version}</version>
  114. <type>pom</type>
  115. <scope>import</scope>
  116. </dependency>
  117. <!--web 模块-->
  118. <dependency>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-starter-web</artifactId>
  121. <version>${spring-boot.version}</version>
  122. <exclusions>
  123. <!--排除tomcat依赖-->
  124. <exclusion>
  125. <artifactId>spring-boot-starter-tomcat</artifactId>
  126. <groupId>org.springframework.boot</groupId>
  127. </exclusion>
  128. </exclusions>
  129. </dependency>
  130. </dependencies>
  131. </dependencyManagement>
  132. <build>
  133. <finalName>${project.name}</finalName>
  134. <resources>
  135. <resource>
  136. <directory>src/main/resources</directory>
  137. <filtering>true</filtering>
  138. </resource>
  139. </resources>
  140. <pluginManagement>
  141. <plugins>
  142. <!--spring boot 默认插件-->
  143. <plugin>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-maven-plugin</artifactId>
  146. <version>${spring-boot.version}</version>
  147. <executions>
  148. <execution>
  149. <goals>
  150. <goal>repackage</goal>
  151. </goals>
  152. </execution>
  153. </executions>
  154. </plugin>
  155. <!--maven docker 打包插件 -->
  156. <plugin>
  157. <groupId>io.fabric8</groupId>
  158. <artifactId>docker-maven-plugin</artifactId>
  159. <version>${docker.plugin.version}</version>
  160. <configuration>
  161. <dockerHost>${docker.host}</dockerHost>
  162. <registry>${docker.registry}</registry>
  163. <authConfig>
  164. <push>
  165. <username>${docker.username}</username>
  166. <password>${docker.password}</password>
  167. </push>
  168. </authConfig>
  169. <images>
  170. <image>
  171. <name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
  172. <build>
  173. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  174. </build>
  175. </image>
  176. </images>
  177. </configuration>
  178. </plugin>
  179. </plugins>
  180. </pluginManagement>
  181. <plugins>
  182. <!--代码格式插件,默认使用spring 规则-->
  183. <plugin>
  184. <groupId>io.spring.javaformat</groupId>
  185. <artifactId>spring-javaformat-maven-plugin</artifactId>
  186. <version>${spring.checkstyle.version}</version>
  187. </plugin>
  188. <!--代码编译指定版本插件-->
  189. <plugin>
  190. <groupId>org.apache.maven.plugins</groupId>
  191. <artifactId>maven-compiler-plugin</artifactId>
  192. <version>${maven.compiler.version}</version>
  193. <configuration>
  194. <target>${maven.compiler.target}</target>
  195. <source>${maven.compiler.source}</source>
  196. <encoding>UTF-8</encoding>
  197. <skip>true</skip>
  198. </configuration>
  199. </plugin>
  200. <!--打包关联最新 git commit 信息插件-->
  201. <plugin>
  202. <groupId>pl.project13.maven</groupId>
  203. <artifactId>git-commit-id-plugin</artifactId>
  204. <version>${git.commit.version}</version>
  205. </plugin>
  206. </plugins>
  207. </build>
  208. <pluginRepositories>
  209. <pluginRepository>
  210. <id>aliyun-plugin</id>
  211. <url>https://maven.aliyun.com/repository/public</url>
  212. <releases>
  213. <enabled>true</enabled>
  214. </releases>
  215. <snapshots>
  216. <enabled>false</enabled>
  217. </snapshots>
  218. </pluginRepository>
  219. </pluginRepositories>
  220. <repositories>
  221. <!--阿里云代理-->
  222. <repository>
  223. <id>aliyun</id>
  224. <name>aliyun</name>
  225. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  226. </repository>
  227. </repositories>
  228. <profiles>
  229. <profile>
  230. <id>dev</id>
  231. <properties>
  232. <!-- 环境标识,需要与配置文件的名称相对应 -->
  233. <profiles.active>dev</profiles.active>
  234. <nacos.username>nacos</nacos.username>
  235. <nacos.password>TGCzv6Rg2qimAJn</nacos.password>
  236. <nacos.server-addr>localhost:8848</nacos.server-addr>
  237. <profiles.namespace>a5e42a72-1f8f-44fc-bd2d-2dbc73cb327c</profiles.namespace>
  238. <profiles.auth.port>3000</profiles.auth.port>
  239. <profiles.gateway.port>9998</profiles.gateway.port>
  240. <profiles.upms.biz.port>4000</profiles.upms.biz.port>
  241. <profiles.quartz.port>5007</profiles.quartz.port>
  242. <profiles.report.port>3001</profiles.report.port>
  243. </properties>
  244. <activation>
  245. <!-- 默认环境 -->
  246. <activeByDefault>true</activeByDefault>
  247. </activation>
  248. </profile>
  249. <profile>
  250. <id>demo</id>
  251. <properties>
  252. <profiles.active>demo</profiles.active>
  253. <nacos.username>nacos</nacos.username>
  254. <nacos.password>TGCzv6Rg2qimAJn</nacos.password>
  255. <nacos.server-addr>localhost:8848</nacos.server-addr>
  256. <profiles.namespace>a5e42a72-1f8f-44fc-bd2d-2dbc73cb327c</profiles.namespace>
  257. <profiles.auth.port>23000</profiles.auth.port>
  258. <profiles.gateway.port>29999</profiles.gateway.port>
  259. <profiles.upms.biz.port>24000</profiles.upms.biz.port>
  260. <profiles.quartz.port>25007</profiles.quartz.port>
  261. <profiles.report.port>23001</profiles.report.port>
  262. </properties>
  263. </profile>
  264. <profile>
  265. <id>pre</id>
  266. <properties>
  267. <profiles.active>pre</profiles.active>
  268. <nacos.username>nacos</nacos.username>
  269. <nacos.password>TGCzv6Rg2qimAJn</nacos.password>
  270. <nacos.server-addr>localhost:8848</nacos.server-addr>
  271. <profiles.namespace>a5e42a72-1f8f-44fc-bd2d-2dbc73cb327c</profiles.namespace>
  272. <profiles.auth.port>13000</profiles.auth.port>
  273. <profiles.gateway.port>19998</profiles.gateway.port>
  274. <profiles.upms.biz.port>14000</profiles.upms.biz.port>
  275. <profiles.quartz.port>15007</profiles.quartz.port>
  276. <profiles.report.port>13001</profiles.report.port>
  277. </properties>
  278. </profile>
  279. <profile>
  280. <id>prod</id>
  281. <properties>
  282. <profiles.active>prod</profiles.active>
  283. <nacos.username>nacos</nacos.username>
  284. <nacos.password>TGCzv6Rg2qimAJn1</nacos.password>
  285. <nacos.server-addr>172.25.196.30:8848</nacos.server-addr>
  286. <profiles.namespace>a5e42a72-1f8f-44fc-bd2d-2dbc73cb327c</profiles.namespace>
  287. <profiles.auth.port>3000</profiles.auth.port>
  288. <profiles.gateway.port>9999</profiles.gateway.port>
  289. <profiles.upms.biz.port>4000</profiles.upms.biz.port>
  290. <profiles.quartz.port>5007</profiles.quartz.port>
  291. <profiles.report.port>3001</profiles.report.port>
  292. </properties>
  293. </profile>
  294. <profile>
  295. <id>local</id>
  296. <properties>
  297. <profiles.active>local</profiles.active>
  298. <nacos.username>nacos</nacos.username>
  299. <nacos.password>nacos</nacos.password>
  300. <nacos.server-addr>localhost:8848</nacos.server-addr>
  301. <profiles.namespace>9bdeb532-930a-4d8a-9af1-206f64767268</profiles.namespace>
  302. <profiles.auth.port>3000</profiles.auth.port>
  303. <profiles.gateway.port>9999</profiles.gateway.port>
  304. <profiles.upms.biz.port>4000</profiles.upms.biz.port>
  305. <profiles.quartz.port>5007</profiles.quartz.port>
  306. <profiles.report.port>3001</profiles.report.port>
  307. </properties>
  308. </profile>
  309. <profile>
  310. <id>remote</id>
  311. <properties>
  312. <!-- 环境标识,需要与配置文件的名称相对应 -->
  313. <profiles.active>remote</profiles.active>
  314. <nacos.username>nacos</nacos.username>
  315. <nacos.password>nacos1</nacos.password>
  316. <nacos.server-addr>nacos.freerr.cn:57260</nacos.server-addr>
  317. <profiles.namespace>51f03f27-1bcc-4720-bfab-83cffa17807c</profiles.namespace>
  318. <profiles.auth.port>3000</profiles.auth.port>
  319. <profiles.gateway.port>9999</profiles.gateway.port>
  320. <profiles.upms.biz.port>4000</profiles.upms.biz.port>
  321. <profiles.quartz.port>5007</profiles.quartz.port>
  322. <profiles.report.port>3001</profiles.report.port>
  323. </properties>
  324. </profile>
  325. </profiles>
  326. </project>