pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~
  4. ~ Copyright (c) 2018-2025, lengleng 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: lengleng (wangiegie@gmail.com)
  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.pig4cloud</groupId>
  24. <artifactId>pigx</artifactId>
  25. <version>3.7.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.2.4.RELEASE</spring-boot.version>
  34. <spring-cloud.version>Hoxton.SR2</spring-cloud.version>
  35. <spring-cloud-alibaba.version>2.2.0.RELEASE</spring-cloud-alibaba.version>
  36. <spring-platform.version>Cairo-SR8</spring-platform.version>
  37. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  38. <maven.compiler.source>1.8</maven.compiler.source>
  39. <maven.compiler.target>1.8</maven.compiler.target>
  40. <spring-boot-admin.version>2.2.2</spring-boot-admin.version>
  41. <hutool.version>5.1.4</hutool.version>
  42. <kaptcha.version>1.6.2</kaptcha.version>
  43. <swagger.fox.version>2.9.2</swagger.fox.version>
  44. <knife4j.version>2.0.1</knife4j.version>
  45. <curator.version>2.10.0</curator.version>
  46. <velocity.version>1.7</velocity.version>
  47. <lcn.version>4.1.0</lcn.version>
  48. <jasypt.version>2.1.1</jasypt.version>
  49. <ttl.version>2.11.2</ttl.version>
  50. <minio.version>6.0.11</minio.version>
  51. <elastic-job-lite.version>2.1.5</elastic-job-lite.version>
  52. <xxl.job.version>2.1.1</xxl.job.version>
  53. <security.oauth.version>2.3.6.RELEASE</security.oauth.version>
  54. <activiti.version>5.22.0</activiti.version>
  55. <docker.registry>172.17.0.111</docker.registry>
  56. <docker.host>http://172.17.0.111:2375</docker.host>
  57. <docker.namespace>library</docker.namespace>
  58. <docker.username>admin</docker.username>
  59. <docker.password>Harbor12345</docker.password>
  60. <docker.plugin.version>0.32.0</docker.plugin.version>
  61. </properties>
  62. <dependencies>
  63. <!--配置文件处理器-->
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-configuration-processor</artifactId>
  67. <optional>true</optional>
  68. </dependency>
  69. <!--jasypt配置文件加解密-->
  70. <dependency>
  71. <groupId>com.github.ulisesbocchio</groupId>
  72. <artifactId>jasypt-spring-boot-starter</artifactId>
  73. <version>${jasypt.version}</version>
  74. </dependency>
  75. <!--监控-->
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-actuator</artifactId>
  79. </dependency>
  80. <!--监控客户端-->
  81. <dependency>
  82. <groupId>de.codecentric</groupId>
  83. <artifactId>spring-boot-admin-starter-client</artifactId>
  84. <version>${spring-boot-admin.version}</version>
  85. </dependency>
  86. <!--Lombok-->
  87. <dependency>
  88. <groupId>org.projectlombok</groupId>
  89. <artifactId>lombok</artifactId>
  90. <scope>provided</scope>
  91. </dependency>
  92. <!--测试依赖-->
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-test</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. </dependencies>
  99. <modules>
  100. <module>pigx-register</module>
  101. <module>pigx-gateway</module>
  102. <module>pigx-auth</module>
  103. <module>pigx-upms</module>
  104. <module>pigx-common</module>
  105. <module>pigx-visual</module>
  106. <module>pigx-inventory</module>
  107. </modules>
  108. <dependencyManagement>
  109. <dependencies>
  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>io.spring.platform</groupId>
  119. <artifactId>platform-bom</artifactId>
  120. <version>${spring-platform.version}</version>
  121. <type>pom</type>
  122. <scope>import</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.springframework.cloud</groupId>
  126. <artifactId>spring-cloud-dependencies</artifactId>
  127. <version>${spring-cloud.version}</version>
  128. <type>pom</type>
  129. <scope>import</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.pig4cloud</groupId>
  133. <artifactId>pigx-common-bom</artifactId>
  134. <version>${project.version}</version>
  135. <type>pom</type>
  136. <scope>import</scope>
  137. </dependency>
  138. <!--spring cloud alibaba-->
  139. <dependency>
  140. <groupId>com.alibaba.cloud</groupId>
  141. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  142. <version>${spring-cloud-alibaba.version}</version>
  143. <type>pom</type>
  144. <scope>import</scope>
  145. </dependency>
  146. <!--稳定版本,替代spring security bom内置-->
  147. <dependency>
  148. <groupId>org.springframework.security.oauth</groupId>
  149. <artifactId>spring-security-oauth2</artifactId>
  150. <version>${security.oauth.version}</version>
  151. </dependency>
  152. <!--web 模块-->
  153. <dependency>
  154. <groupId>org.springframework.boot</groupId>
  155. <artifactId>spring-boot-starter-web</artifactId>
  156. <version>${spring-boot.version}</version>
  157. <exclusions>
  158. <!--排除tomcat依赖-->
  159. <exclusion>
  160. <artifactId>spring-boot-starter-tomcat</artifactId>
  161. <groupId>org.springframework.boot</groupId>
  162. </exclusion>
  163. </exclusions>
  164. </dependency>
  165. </dependencies>
  166. </dependencyManagement>
  167. <build>
  168. <finalName>${project.name}</finalName>
  169. <resources>
  170. <resource>
  171. <directory>src/main/resources</directory>
  172. <filtering>true</filtering>
  173. </resource>
  174. </resources>
  175. <pluginManagement>
  176. <plugins>
  177. <plugin>
  178. <groupId>org.springframework.boot</groupId>
  179. <artifactId>spring-boot-maven-plugin</artifactId>
  180. <version>${spring-boot.version}</version>
  181. <executions>
  182. <execution>
  183. <goals>
  184. <goal>repackage</goal>
  185. </goals>
  186. </execution>
  187. </executions>
  188. </plugin>
  189. <plugin>
  190. <groupId>io.fabric8</groupId>
  191. <artifactId>docker-maven-plugin</artifactId>
  192. <version>${docker.plugin.version}</version>
  193. <configuration>
  194. <dockerHost>${docker.host}</dockerHost>
  195. <registry>${docker.registry}</registry>
  196. <authConfig>
  197. <push>
  198. <username>${docker.username}</username>
  199. <password>${docker.password}</password>
  200. </push>
  201. </authConfig>
  202. <images>
  203. <image>
  204. <name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
  205. <build>
  206. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  207. </build>
  208. </image>
  209. </images>
  210. </configuration>
  211. </plugin>
  212. </plugins>
  213. </pluginManagement>
  214. <plugins>
  215. <plugin>
  216. <artifactId>maven-compiler-plugin</artifactId>
  217. <version>3.8.0</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. <plugin>
  226. <groupId>pl.project13.maven</groupId>
  227. <artifactId>git-commit-id-plugin</artifactId>
  228. <version>2.2.5</version>
  229. </plugin>
  230. </plugins>
  231. </build>
  232. <pluginRepositories>
  233. <pluginRepository>
  234. <id>aliyun-plugin</id>
  235. <url>https://maven.aliyun.com/repository/public</url>
  236. <releases>
  237. <enabled>true</enabled>
  238. </releases>
  239. <snapshots>
  240. <enabled>false</enabled>
  241. </snapshots>
  242. </pluginRepository>
  243. </pluginRepositories>
  244. <repositories>
  245. <!--阿里云代理-->
  246. <repository>
  247. <id>aliyun</id>
  248. <name>aliyun</name>
  249. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  250. </repository>
  251. </repositories>
  252. <profiles>
  253. <profile>
  254. <id>dev</id>
  255. <properties>
  256. <!-- 环境标识,需要与配置文件的名称相对应 -->
  257. <profiles.active>dev</profiles.active>
  258. </properties>
  259. <activation>
  260. <!-- 默认环境 -->
  261. <activeByDefault>true</activeByDefault>
  262. </activation>
  263. </profile>
  264. <profile>
  265. <id>test</id>
  266. <properties>
  267. <profiles.active>test</profiles.active>
  268. </properties>
  269. </profile>
  270. <profile>
  271. <id>prod</id>
  272. <properties>
  273. <profiles.active>prod</profiles.active>
  274. </properties>
  275. </profile>
  276. </profiles>
  277. </project>