pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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. <!-- &lt;!&ndash;排除tomcat依赖&ndash;&gt;-->
  124. <!-- <exclusion>-->
  125. <!-- <artifactId>spring-boot-starter-tomcat</artifactId>-->
  126. <!-- <groupId>org.springframework.boot</groupId>-->
  127. <!-- </exclusion>-->
  128. <!--</exclusions>-->
  129. </dependency>
  130. <dependency>
  131. <artifactId>spring-boot-starter-tomcat</artifactId>
  132. <groupId>org.springframework.boot</groupId>
  133. </dependency>
  134. </dependencies>
  135. </dependencyManagement>
  136. <build>
  137. <finalName>${project.name}</finalName>
  138. <resources>
  139. <resource>
  140. <directory>src/main/resources</directory>
  141. <filtering>true</filtering>
  142. </resource>
  143. </resources>
  144. <pluginManagement>
  145. <plugins>
  146. <!--spring boot 默认插件-->
  147. <plugin>
  148. <groupId>org.springframework.boot</groupId>
  149. <artifactId>spring-boot-maven-plugin</artifactId>
  150. <version>${spring-boot.version}</version>
  151. <executions>
  152. <execution>
  153. <goals>
  154. <goal>repackage</goal>
  155. </goals>
  156. </execution>
  157. </executions>
  158. </plugin>
  159. <!--maven docker 打包插件 -->
  160. <plugin>
  161. <groupId>io.fabric8</groupId>
  162. <artifactId>docker-maven-plugin</artifactId>
  163. <version>${docker.plugin.version}</version>
  164. <configuration>
  165. <dockerHost>${docker.host}</dockerHost>
  166. <registry>${docker.registry}</registry>
  167. <authConfig>
  168. <push>
  169. <username>${docker.username}</username>
  170. <password>${docker.password}</password>
  171. </push>
  172. </authConfig>
  173. <images>
  174. <image>
  175. <name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
  176. <build>
  177. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  178. </build>
  179. </image>
  180. </images>
  181. </configuration>
  182. </plugin>
  183. </plugins>
  184. </pluginManagement>
  185. <plugins>
  186. <!--代码格式插件,默认使用spring 规则-->
  187. <plugin>
  188. <groupId>io.spring.javaformat</groupId>
  189. <artifactId>spring-javaformat-maven-plugin</artifactId>
  190. <version>${spring.checkstyle.version}</version>
  191. </plugin>
  192. <!--代码编译指定版本插件-->
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-compiler-plugin</artifactId>
  196. <version>${maven.compiler.version}</version>
  197. <configuration>
  198. <target>${maven.compiler.target}</target>
  199. <source>${maven.compiler.source}</source>
  200. <encoding>UTF-8</encoding>
  201. <skip>true</skip>
  202. </configuration>
  203. </plugin>
  204. <!--打包关联最新 git commit 信息插件-->
  205. <plugin>
  206. <groupId>pl.project13.maven</groupId>
  207. <artifactId>git-commit-id-plugin</artifactId>
  208. <version>${git.commit.version}</version>
  209. </plugin>
  210. </plugins>
  211. </build>
  212. <pluginRepositories>
  213. <pluginRepository>
  214. <id>aliyun-plugin</id>
  215. <url>https://maven.aliyun.com/repository/public</url>
  216. <releases>
  217. <enabled>true</enabled>
  218. </releases>
  219. <snapshots>
  220. <enabled>false</enabled>
  221. </snapshots>
  222. </pluginRepository>
  223. </pluginRepositories>
  224. <repositories>
  225. <!--阿里云代理-->
  226. <repository>
  227. <id>aliyun</id>
  228. <name>aliyun</name>
  229. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  230. </repository>
  231. </repositories>
  232. <profiles>
  233. <profile>
  234. <id>dev</id>
  235. <properties>
  236. <!-- 环境标识,需要与配置文件的名称相对应 -->
  237. <profiles.active>dev</profiles.active>
  238. <nacos.username>nacos</nacos.username>
  239. <nacos.password>TGCzv6Rg2qimAJn</nacos.password>
  240. <nacos.server-addr>localhost:8848</nacos.server-addr>
  241. <profiles.namespace>a5e42a72-1f8f-44fc-bd2d-2dbc73cb327c</profiles.namespace>
  242. <profiles.auth.port>3000</profiles.auth.port>
  243. <profiles.gateway.port>9998</profiles.gateway.port>
  244. <profiles.upms.biz.port>4000</profiles.upms.biz.port>
  245. <profiles.quartz.port>5007</profiles.quartz.port>
  246. <profiles.report.port>3001</profiles.report.port>
  247. </properties>
  248. <activation>
  249. <!-- 默认环境 -->
  250. <activeByDefault>true</activeByDefault>
  251. </activation>
  252. </profile>
  253. <profile>
  254. <id>demo</id>
  255. <properties>
  256. <profiles.active>demo</profiles.active>
  257. <nacos.username>nacos</nacos.username>
  258. <nacos.password>TGCzv6Rg2qimAJn</nacos.password>
  259. <nacos.server-addr>localhost:8848</nacos.server-addr>
  260. <profiles.namespace>a5e42a72-1f8f-44fc-bd2d-2dbc73cb327c</profiles.namespace>
  261. <profiles.auth.port>23000</profiles.auth.port>
  262. <profiles.gateway.port>29999</profiles.gateway.port>
  263. <profiles.upms.biz.port>24000</profiles.upms.biz.port>
  264. <profiles.quartz.port>25007</profiles.quartz.port>
  265. <profiles.report.port>23001</profiles.report.port>
  266. </properties>
  267. </profile>
  268. <profile>
  269. <id>pre</id>
  270. <properties>
  271. <profiles.active>pre</profiles.active>
  272. <nacos.username>nacos</nacos.username>
  273. <nacos.password>TGCzv6Rg2qimAJn</nacos.password>
  274. <nacos.server-addr>localhost:8848</nacos.server-addr>
  275. <profiles.namespace>a5e42a72-1f8f-44fc-bd2d-2dbc73cb327c</profiles.namespace>
  276. <profiles.auth.port>13000</profiles.auth.port>
  277. <profiles.gateway.port>19998</profiles.gateway.port>
  278. <profiles.upms.biz.port>14000</profiles.upms.biz.port>
  279. <profiles.quartz.port>15007</profiles.quartz.port>
  280. <profiles.report.port>13001</profiles.report.port>
  281. </properties>
  282. </profile>
  283. <profile>
  284. <id>prod</id>
  285. <properties>
  286. <profiles.active>prod</profiles.active>
  287. <nacos.username>nacos</nacos.username>
  288. <nacos.password>TGCzv6Rg2qimAJn1</nacos.password>
  289. <nacos.server-addr>172.25.196.30:8848</nacos.server-addr>
  290. <profiles.namespace>a5e42a72-1f8f-44fc-bd2d-2dbc73cb327c</profiles.namespace>
  291. <profiles.auth.port>3000</profiles.auth.port>
  292. <profiles.gateway.port>9999</profiles.gateway.port>
  293. <profiles.upms.biz.port>4000</profiles.upms.biz.port>
  294. <profiles.quartz.port>5007</profiles.quartz.port>
  295. <profiles.report.port>3001</profiles.report.port>
  296. </properties>
  297. </profile>
  298. <profile>
  299. <id>local</id>
  300. <properties>
  301. <profiles.active>local</profiles.active>
  302. <nacos.username>nacos</nacos.username>
  303. <nacos.password>nacos</nacos.password>
  304. <nacos.server-addr>localhost:8848</nacos.server-addr>
  305. <profiles.namespace>9bdeb532-930a-4d8a-9af1-206f64767268</profiles.namespace>
  306. <profiles.auth.port>3000</profiles.auth.port>
  307. <profiles.gateway.port>9999</profiles.gateway.port>
  308. <profiles.upms.biz.port>4000</profiles.upms.biz.port>
  309. <profiles.quartz.port>5007</profiles.quartz.port>
  310. <profiles.report.port>3001</profiles.report.port>
  311. </properties>
  312. </profile>
  313. <profile>
  314. <id>remote</id>
  315. <properties>
  316. <!-- 环境标识,需要与配置文件的名称相对应 -->
  317. <profiles.active>remote</profiles.active>
  318. <nacos.username>nacos</nacos.username>
  319. <nacos.password>nacos1</nacos.password>
  320. <nacos.server-addr>nacos.freerr.cn:57260</nacos.server-addr>
  321. <profiles.namespace>51f03f27-1bcc-4720-bfab-83cffa17807c</profiles.namespace>
  322. <profiles.auth.port>3000</profiles.auth.port>
  323. <profiles.gateway.port>9999</profiles.gateway.port>
  324. <profiles.upms.biz.port>4000</profiles.upms.biz.port>
  325. <profiles.quartz.port>5007</profiles.quartz.port>
  326. <profiles.report.port>3001</profiles.report.port>
  327. </properties>
  328. </profile>
  329. <profile>
  330. <id>cnbg-loc</id>
  331. <properties>
  332. <profiles.active>loc</profiles.active>
  333. <nacos.username>nacos</nacos.username>
  334. <nacos.password>nacos1</nacos.password>
  335. <nacos.server-addr>nacos.freerr.cn:57260</nacos.server-addr>
  336. <profiles.namespace>51f03f27-1bcc-4720-bfab-83cffa17807c</profiles.namespace>
  337. <profiles.auth.port>3000</profiles.auth.port>
  338. <profiles.gateway.port>9999</profiles.gateway.port>
  339. <profiles.upms.biz.port>4000</profiles.upms.biz.port>
  340. <profiles.quartz.port>5007</profiles.quartz.port>
  341. <profiles.report.port>3001</profiles.report.port>
  342. </properties>
  343. </profile>
  344. </profiles>
  345. </project>