pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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>4.6.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.7.7</spring-boot.version>
  34. <spring-cloud.version>2021.0.5</spring-cloud.version>
  35. <spring-cloud-alibaba.version>2021.0.1.0</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.34</spring.checkstyle.version>
  41. <git.commit.version>2.2.5</git.commit.version>
  42. <spring-boot-admin.version>2.7.9</spring-boot-admin.version>
  43. <spring.authorization.version>0.4.0</spring.authorization.version>
  44. <captcha.version>1.2.7</captcha.version>
  45. <cas.sdk.version>3.6.4</cas.sdk.version>
  46. <dingtalk.old.version>2.0.0</dingtalk.old.version>
  47. <knife4j.version>4.0.0</knife4j.version>
  48. <springdoc.version>1.6.14</springdoc.version>
  49. <velocity.version>2.3</velocity.version>
  50. <velocity.tool.version>3.1</velocity.tool.version>
  51. <jasypt.version>3.0.4</jasypt.version>
  52. <ttl.version>2.12.6</ttl.version>
  53. <aws.version>1.11.543</aws.version>
  54. <jaxb.version>2.3.5</jaxb.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.33.0</docker.plugin.version>
  61. <!-- 默认忽略docker构建 -->
  62. <docker.skip>false</docker.skip>
  63. </properties>
  64. <dependencies>
  65. <!--配置文件处理器-->
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-configuration-processor</artifactId>
  69. <optional>true</optional>
  70. </dependency>
  71. <!--jasypt配置文件加解密-->
  72. <dependency>
  73. <groupId>com.github.ulisesbocchio</groupId>
  74. <artifactId>jasypt-spring-boot-starter</artifactId>
  75. <version>${jasypt.version}</version>
  76. </dependency>
  77. <!--监控-->
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-actuator</artifactId>
  81. </dependency>
  82. <!--监控客户端-->
  83. <dependency>
  84. <groupId>de.codecentric</groupId>
  85. <artifactId>spring-boot-admin-starter-client</artifactId>
  86. <version>${spring-boot-admin.version}</version>
  87. </dependency>
  88. <!--Lombok-->
  89. <dependency>
  90. <groupId>org.projectlombok</groupId>
  91. <artifactId>lombok</artifactId>
  92. <scope>provided</scope>
  93. </dependency>
  94. <!-- JAVA 17 -->
  95. <dependency>
  96. <groupId>com.sun.xml.bind</groupId>
  97. <artifactId>jaxb-impl</artifactId>
  98. <version>${jaxb.version}</version>
  99. </dependency>
  100. <!--测试依赖-->
  101. <dependency>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-starter-test</artifactId>
  104. <scope>test</scope>
  105. </dependency>
  106. </dependencies>
  107. <modules>
  108. <module>pigx-auth</module>
  109. <module>pigx-codegen</module>
  110. <module>pigx-quartz</module>
  111. <module>pigx-upms</module>
  112. </modules>
  113. <dependencyManagement>
  114. <dependencies>
  115. <!--pigx 公共版本定义-->
  116. <dependency>
  117. <groupId>com.pig4cloud</groupId>
  118. <artifactId>pigx-common-bom</artifactId>
  119. <version>${project.version}</version>
  120. <type>pom</type>
  121. <scope>import</scope>
  122. </dependency>
  123. <!--spring boot 公共版本定义-->
  124. <dependency>
  125. <groupId>org.springframework.boot</groupId>
  126. <artifactId>spring-boot-dependencies</artifactId>
  127. <version>${spring-boot.version}</version>
  128. <type>pom</type>
  129. <scope>import</scope>
  130. </dependency>
  131. <!--spring cloud 公共版本定义-->
  132. <dependency>
  133. <groupId>org.springframework.cloud</groupId>
  134. <artifactId>spring-cloud-dependencies</artifactId>
  135. <version>${spring-cloud.version}</version>
  136. <type>pom</type>
  137. <scope>import</scope>
  138. </dependency>
  139. <!--spring cloud alibaba-->
  140. <dependency>
  141. <groupId>com.alibaba.cloud</groupId>
  142. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  143. <version>${spring-cloud-alibaba.version}</version>
  144. <type>pom</type>
  145. <scope>import</scope>
  146. </dependency>
  147. <!--web 模块-->
  148. <dependency>
  149. <groupId>org.springframework.boot</groupId>
  150. <artifactId>spring-boot-starter-web</artifactId>
  151. <version>${spring-boot.version}</version>
  152. <exclusions>
  153. <!--排除tomcat依赖-->
  154. <exclusion>
  155. <artifactId>spring-boot-starter-tomcat</artifactId>
  156. <groupId>org.springframework.boot</groupId>
  157. </exclusion>
  158. </exclusions>
  159. </dependency>
  160. </dependencies>
  161. </dependencyManagement>
  162. <build>
  163. <finalName>${project.name}</finalName>
  164. <resources>
  165. <resource>
  166. <directory>src/main/resources</directory>
  167. <filtering>true</filtering>
  168. </resource>
  169. </resources>
  170. <pluginManagement>
  171. <plugins>
  172. <!--spring boot 默认插件-->
  173. <plugin>
  174. <groupId>org.springframework.boot</groupId>
  175. <artifactId>spring-boot-maven-plugin</artifactId>
  176. <version>${spring-boot.version}</version>
  177. <executions>
  178. <execution>
  179. <goals>
  180. <goal>repackage</goal>
  181. </goals>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. <!--maven docker 打包插件 -->
  186. <plugin>
  187. <groupId>io.fabric8</groupId>
  188. <artifactId>docker-maven-plugin</artifactId>
  189. <version>${docker.plugin.version}</version>
  190. <configuration>
  191. <dockerHost>${docker.host}</dockerHost>
  192. <registry>${docker.registry}</registry>
  193. <authConfig>
  194. <push>
  195. <username>${docker.username}</username>
  196. <password>${docker.password}</password>
  197. </push>
  198. </authConfig>
  199. <images>
  200. <image>
  201. <name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
  202. <build>
  203. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  204. </build>
  205. </image>
  206. </images>
  207. </configuration>
  208. </plugin>
  209. </plugins>
  210. </pluginManagement>
  211. <plugins>
  212. <!--代码格式插件,默认使用spring 规则-->
  213. <plugin>
  214. <groupId>io.spring.javaformat</groupId>
  215. <artifactId>spring-javaformat-maven-plugin</artifactId>
  216. <version>${spring.checkstyle.version}</version>
  217. </plugin>
  218. <!--代码编译指定版本插件-->
  219. <plugin>
  220. <groupId>org.apache.maven.plugins</groupId>
  221. <artifactId>maven-compiler-plugin</artifactId>
  222. <version>${maven.compiler.version}</version>
  223. <configuration>
  224. <target>${maven.compiler.target}</target>
  225. <source>${maven.compiler.source}</source>
  226. <encoding>UTF-8</encoding>
  227. <skip>true</skip>
  228. </configuration>
  229. </plugin>
  230. <!--打包关联最新 git commit 信息插件-->
  231. <plugin>
  232. <groupId>pl.project13.maven</groupId>
  233. <artifactId>git-commit-id-plugin</artifactId>
  234. <version>${git.commit.version}</version>
  235. </plugin>
  236. </plugins>
  237. </build>
  238. <repositories>
  239. <repository>
  240. <id>rdc-releases</id>
  241. <url>https://packages.aliyun.com/maven/repository/2161442-release-DcBZC1/</url>
  242. <releases>
  243. <enabled>true</enabled>
  244. </releases>
  245. <snapshots>
  246. <enabled>false</enabled>
  247. </snapshots>
  248. </repository>
  249. <repository>
  250. <id>rdc-snapshots</id>
  251. <url>https://packages.aliyun.com/maven/repository/2161442-snapshot-FzKqZK/</url>
  252. <releases>
  253. <enabled>false</enabled>
  254. </releases>
  255. <snapshots>
  256. <enabled>true</enabled>
  257. </snapshots>
  258. </repository>
  259. </repositories>
  260. <profiles>
  261. <profile>
  262. <id>dev</id>
  263. <properties>
  264. <!-- 环境标识,需要与配置文件的名称相对应 -->
  265. <profiles.active>dev</profiles.active>
  266. </properties>
  267. <activation>
  268. <!-- 默认环境 -->
  269. <activeByDefault>true</activeByDefault>
  270. </activation>
  271. </profile>
  272. </profiles>
  273. </project>