pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~
  4. ~ Copyright (c) 2018-2025, avenue 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: avenue
  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.emergency</groupId>
  24. <artifactId>avenue</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.0</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>10.165.153.100:82</docker.registry>
  56. <!-- 需要使用ssh隧道连接服务器-->
  57. <docker.host>http://127.0.0.1:2375</docker.host>
  58. <docker.namespace>library</docker.namespace>
  59. <docker.username>admin</docker.username>
  60. <docker.password>123</docker.password>
  61. <docker.plugin.version>0.33.0</docker.plugin.version>
  62. <!-- 默认忽略docker构建 -->
  63. <docker.skip>false</docker.skip>
  64. <xxl.job.version>2.3.0</xxl.job.version>
  65. <image.version>4.6.1</image.version>
  66. <squirrel.version>0.3.10</squirrel.version>
  67. <fastjson.version>1.2.83</fastjson.version>
  68. <redisson.springStarter>3.17.3</redisson.springStarter>
  69. </properties>
  70. <dependencies>
  71. <!--配置文件处理器-->
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-configuration-processor</artifactId>
  75. <optional>true</optional>
  76. </dependency>
  77. <!--jasypt配置文件加解密-->
  78. <dependency>
  79. <groupId>com.github.ulisesbocchio</groupId>
  80. <artifactId>jasypt-spring-boot-starter</artifactId>
  81. <version>${jasypt.version}</version>
  82. </dependency>
  83. <!--监控-->
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-actuator</artifactId>
  87. </dependency>
  88. <!--监控客户端-->
  89. <dependency>
  90. <groupId>de.codecentric</groupId>
  91. <artifactId>spring-boot-admin-starter-client</artifactId>
  92. <version>${spring-boot-admin.version}</version>
  93. </dependency>
  94. <!-- xxl-job -->
  95. <dependency>
  96. <groupId>com.xuxueli</groupId>
  97. <artifactId>xxl-job-core</artifactId>
  98. <version>2.3.0</version>
  99. </dependency>
  100. <!--Lombok-->
  101. <dependency>
  102. <groupId>org.projectlombok</groupId>
  103. <artifactId>lombok</artifactId>
  104. <scope>provided</scope>
  105. </dependency>
  106. <!-- JAVA 17 -->
  107. <dependency>
  108. <groupId>com.sun.xml.bind</groupId>
  109. <artifactId>jaxb-impl</artifactId>
  110. <version>${jaxb.version}</version>
  111. </dependency>
  112. <!--测试依赖-->
  113. <dependency>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-starter-test</artifactId>
  116. <scope>test</scope>
  117. </dependency>
  118. <!--验证码-->
  119. <dependency>
  120. <groupId>com.github.axet</groupId>
  121. <artifactId>kaptcha</artifactId>
  122. <version>0.0.9</version>
  123. </dependency>
  124. </dependencies>
  125. <modules>
  126. <module>avenue-auth</module>
  127. <module>avenue-codegen</module>
  128. <module>avenue-upms</module>
  129. <module>avenue-common</module>
  130. </modules>
  131. <dependencyManagement>
  132. <dependencies>
  133. <!--avenue 公共版本定义-->
  134. <dependency>
  135. <groupId>com.emergency</groupId>
  136. <artifactId>avenue-common-bom</artifactId>
  137. <version>${project.version}</version>
  138. <type>pom</type>
  139. <scope>import</scope>
  140. </dependency>
  141. <!--spring boot 公共版本定义-->
  142. <dependency>
  143. <groupId>org.springframework.boot</groupId>
  144. <artifactId>spring-boot-dependencies</artifactId>
  145. <version>${spring-boot.version}</version>
  146. <type>pom</type>
  147. <scope>import</scope>
  148. </dependency>
  149. <!--spring cloud 公共版本定义-->
  150. <dependency>
  151. <groupId>org.springframework.cloud</groupId>
  152. <artifactId>spring-cloud-dependencies</artifactId>
  153. <version>${spring-cloud.version}</version>
  154. <type>pom</type>
  155. <scope>import</scope>
  156. </dependency>
  157. <!--spring cloud alibaba-->
  158. <dependency>
  159. <groupId>com.alibaba.cloud</groupId>
  160. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  161. <version>${spring-cloud-alibaba.version}</version>
  162. <type>pom</type>
  163. <scope>import</scope>
  164. </dependency>
  165. <!--web 模块-->
  166. <dependency>
  167. <groupId>org.springframework.boot</groupId>
  168. <artifactId>spring-boot-starter-web</artifactId>
  169. <version>${spring-boot.version}</version>
  170. <exclusions>
  171. <!--排除tomcat依赖-->
  172. <exclusion>
  173. <artifactId>spring-boot-starter-tomcat</artifactId>
  174. <groupId>org.springframework.boot</groupId>
  175. </exclusion>
  176. </exclusions>
  177. </dependency>
  178. </dependencies>
  179. </dependencyManagement>
  180. <build>
  181. <finalName>${project.name}</finalName>
  182. <resources>
  183. <resource>
  184. <directory>src/main/resources</directory>
  185. <filtering>true</filtering>
  186. </resource>
  187. </resources>
  188. <pluginManagement>
  189. <plugins>
  190. <!--spring boot 默认插件-->
  191. <plugin>
  192. <groupId>org.springframework.boot</groupId>
  193. <artifactId>spring-boot-maven-plugin</artifactId>
  194. <version>${spring-boot.version}</version>
  195. <executions>
  196. <execution>
  197. <goals>
  198. <goal>repackage</goal>
  199. </goals>
  200. </execution>
  201. </executions>
  202. </plugin>
  203. <!--maven docker 打包插件 -->
  204. <plugin>
  205. <groupId>io.fabric8</groupId>
  206. <artifactId>docker-maven-plugin</artifactId>
  207. <version>${docker.plugin.version}</version>
  208. <configuration>
  209. <dockerHost>${docker.host}</dockerHost>
  210. <registry>${docker.registry}</registry>
  211. <authConfig>
  212. <push>
  213. <username>${docker.username}</username>
  214. <password>${docker.password}</password>
  215. </push>
  216. </authConfig>
  217. <images>
  218. <image>
  219. <name>${docker.registry}/${docker.namespace}/${project.name}:${image.version}</name>
  220. <build>
  221. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  222. </build>
  223. </image>
  224. </images>
  225. </configuration>
  226. </plugin>
  227. </plugins>
  228. </pluginManagement>
  229. <plugins>
  230. <!--代码格式插件,默认使用spring 规则-->
  231. <plugin>
  232. <groupId>io.spring.javaformat</groupId>
  233. <artifactId>spring-javaformat-maven-plugin</artifactId>
  234. <version>${spring.checkstyle.version}</version>
  235. </plugin>
  236. <!--代码编译指定版本插件-->
  237. <plugin>
  238. <groupId>org.apache.maven.plugins</groupId>
  239. <artifactId>maven-compiler-plugin</artifactId>
  240. <version>${maven.compiler.version}</version>
  241. <configuration>
  242. <target>${maven.compiler.target}</target>
  243. <source>${maven.compiler.source}</source>
  244. <encoding>UTF-8</encoding>
  245. <skip>true</skip>
  246. </configuration>
  247. </plugin>
  248. <!--打包关联最新 git commit 信息插件-->
  249. <plugin>
  250. <groupId>pl.project13.maven</groupId>
  251. <artifactId>git-commit-id-plugin</artifactId>
  252. <version>${git.commit.version}</version>
  253. </plugin>
  254. </plugins>
  255. </build>
  256. <profiles>
  257. <profile>
  258. <id>dev</id>
  259. <properties>
  260. <!-- 环境标识,需要与配置文件的名称相对应 -->
  261. <profiles.active>dev</profiles.active>
  262. </properties>
  263. <activation>
  264. <!-- 默认环境 -->
  265. <activeByDefault>true</activeByDefault>
  266. </activation>
  267. </profile>
  268. </profiles>
  269. </project>