pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.vap</groupId>
  7. <artifactId>ChickenFarm</artifactId>
  8. <version>${revision}</version>
  9. <packaging>pom</packaging>
  10. <name>${project.artifactId}</name>
  11. <description>广明弥勒养殖管理系统</description>
  12. <modules>
  13. <module>vb-common</module>
  14. <module>vb-modules</module>
  15. <module>vb-extend</module>
  16. <module>vb-admin</module>
  17. </modules>
  18. <properties>
  19. <revision>3.0.0</revision>
  20. <java.version>17</java.version>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  23. <spring-boot.version>3.4.7</spring-boot.version>
  24. <spring-boot-admin.version>3.4.7</spring-boot-admin.version>
  25. <springdoc.version>2.8.8</springdoc.version>
  26. <mybatis.version>3.5.16</mybatis.version>
  27. <mybatis-plus.version>3.5.12</mybatis-plus.version>
  28. <dynamic-ds.version>4.3.1</dynamic-ds.version>
  29. <shardingsphere.version>5.5.0</shardingsphere.version>
  30. <therapi-javadoc.version>0.15.0</therapi-javadoc.version>
  31. <redisson.version>3.50.0</redisson.version>
  32. <xxl-job.version>2.4.1</xxl-job.version>
  33. <poi.version>5.2.3</poi.version>
  34. <fastexcel.version>1.2.0</fastexcel.version>
  35. <velocity.version>2.3</velocity.version>
  36. <satoken.version>1.44.0</satoken.version>
  37. <p6spy.version>3.9.1</p6spy.version>
  38. <hutool.version>5.8.38</hutool.version>
  39. <lock4j.version>2.2.7</lock4j.version>
  40. <mapstruct-plus.version>1.4.8</mapstruct-plus.version>
  41. <mapstruct-plus.lombok.version>0.2.0</mapstruct-plus.lombok.version>
  42. <lombok.version>1.18.36</lombok.version>
  43. <bouncycastle.version>1.80</bouncycastle.version>
  44. <justauth.version>1.16.7</justauth.version>
  45. <!-- 离线IP地址定位库 -->
  46. <ip2region.version>2.7.0</ip2region.version>
  47. <!-- OSS 配置 -->
  48. <aws.sdk.version>2.28.22</aws.sdk.version>
  49. <!-- SMS 配置 -->
  50. <sms4j.version>3.3.4</sms4j.version>
  51. <!-- 限制框架中的fastjson版本 -->
  52. <fastjson.version>1.2.83</fastjson.version>
  53. <!-- 面向运行时的D-ORM依赖 -->
  54. <anyline.version>8.7.2-20250603</anyline.version>
  55. <!-- 工作流配置 -->
  56. <warm-flow.version>1.7.4</warm-flow.version>
  57. <!-- 插件版本 -->
  58. <maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
  59. <maven-war-plugin.version>3.4.0</maven-war-plugin.version>
  60. <maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
  61. <maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
  62. <flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
  63. <!-- 打包默认跳过测试 -->
  64. <skipTests>true</skipTests>
  65. </properties>
  66. <profiles>
  67. <!-- <profile>-->
  68. <!-- <id>local</id>-->
  69. <!-- <properties>-->
  70. <!-- &lt;!&ndash; 环境标识,需要与配置文件的名称相对应 &ndash;&gt;-->
  71. <!-- <profiles.active>local</profiles.active>-->
  72. <!-- <logging.level>info</logging.level>-->
  73. <!-- <monitor.username>vber</monitor.username>-->
  74. <!-- <monitor.password>vb123456</monitor.password>-->
  75. <!-- </properties>-->
  76. <!-- </profile>-->
  77. <profile>
  78. <id>dev</id>
  79. <properties>
  80. <!-- 环境标识,需要与配置文件的名称相对应 -->
  81. <profiles.active>dev</profiles.active>
  82. <logging.level>info</logging.level>
  83. <monitor.username>vber</monitor.username>
  84. <monitor.password>vb123456</monitor.password>
  85. </properties>
  86. <activation>
  87. <!-- 默认环境 -->
  88. <activeByDefault>true</activeByDefault>
  89. </activation>
  90. </profile>
  91. <profile>
  92. <id>prod</id>
  93. <properties>
  94. <profiles.active>prod</profiles.active>
  95. <logging.level>warn</logging.level>
  96. <monitor.username>vber</monitor.username>
  97. <monitor.password>vb123456</monitor.password>
  98. </properties>
  99. </profile>
  100. </profiles>
  101. <!-- 依赖声明 -->
  102. <dependencyManagement>
  103. <dependencies>
  104. <!-- SpringBoot的依赖配置-->
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-dependencies</artifactId>
  108. <version>${spring-boot.version}</version>
  109. <type>pom</type>
  110. <scope>import</scope>
  111. </dependency>
  112. <!-- hutool 的依赖配置-->
  113. <dependency>
  114. <groupId>cn.hutool</groupId>
  115. <artifactId>hutool-bom</artifactId>
  116. <version>${hutool.version}</version>
  117. <type>pom</type>
  118. <scope>import</scope>
  119. </dependency>
  120. <!-- Warm-Flow国产工作流引擎, 在线文档:http://warm-flow.cn/ -->
  121. <dependency>
  122. <groupId>org.dromara.warm</groupId>
  123. <artifactId>warm-flow-mybatis-plus-sb3-starter</artifactId>
  124. <version>${warm-flow.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.dromara.warm</groupId>
  128. <artifactId>warm-flow-plugin-ui-sb-web</artifactId>
  129. <version>${warm-flow.version}</version>
  130. </dependency>
  131. <!-- JustAuth 的依赖配置-->
  132. <dependency>
  133. <groupId>me.zhyd.oauth</groupId>
  134. <artifactId>JustAuth</artifactId>
  135. <version>${justauth.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.springdoc</groupId>
  139. <artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
  140. <version>${springdoc.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>com.github.therapi</groupId>
  144. <artifactId>therapi-runtime-javadoc</artifactId>
  145. <version>${therapi-javadoc.version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.projectlombok</groupId>
  149. <artifactId>lombok</artifactId>
  150. <version>${lombok.version}</version>
  151. </dependency>
  152. <!-- velocity代码生成使用模板 -->
  153. <dependency>
  154. <groupId>org.apache.velocity</groupId>
  155. <artifactId>velocity-engine-core</artifactId>
  156. <version>${velocity.version}</version>
  157. </dependency>
  158. <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
  159. <dependency>
  160. <groupId>cn.dev33</groupId>
  161. <artifactId>sa-token-spring-boot3-starter</artifactId>
  162. <version>${satoken.version}</version>
  163. </dependency>
  164. <!-- Sa-Token 整合 jwt -->
  165. <dependency>
  166. <groupId>cn.dev33</groupId>
  167. <artifactId>sa-token-jwt</artifactId>
  168. <version>${satoken.version}</version>
  169. <exclusions>
  170. <exclusion>
  171. <groupId>cn.hutool</groupId>
  172. <artifactId>hutool-all</artifactId>
  173. </exclusion>
  174. </exclusions>
  175. </dependency>
  176. <dependency>
  177. <groupId>cn.dev33</groupId>
  178. <artifactId>sa-token-core</artifactId>
  179. <version>${satoken.version}</version>
  180. </dependency>
  181. <!-- dynamic-datasource 多数据源-->
  182. <dependency>
  183. <groupId>com.baomidou</groupId>
  184. <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
  185. <version>${dynamic-ds.version}</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.mybatis</groupId>
  189. <artifactId>mybatis</artifactId>
  190. <version>${mybatis.version}</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>com.baomidou</groupId>
  194. <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
  195. <version>${mybatis-plus.version}</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>com.baomidou</groupId>
  199. <artifactId>mybatis-plus-jsqlparser</artifactId>
  200. <version>${mybatis-plus.version}</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>com.baomidou</groupId>
  204. <artifactId>mybatis-plus-annotation</artifactId>
  205. <version>${mybatis-plus.version}</version>
  206. </dependency>
  207. <!-- shardingSphere 分库分表-->
  208. <dependency>
  209. <groupId>org.apache.shardingsphere</groupId>
  210. <artifactId>shardingsphere-jdbc</artifactId>
  211. <version>${shardingsphere.version}</version>
  212. </dependency>
  213. <!-- sql性能分析插件 -->
  214. <dependency>
  215. <groupId>p6spy</groupId>
  216. <artifactId>p6spy</artifactId>
  217. <version>${p6spy.version}</version>
  218. </dependency>
  219. <!-- AWS SDK for Java 2.x -->
  220. <dependency>
  221. <groupId>software.amazon.awssdk</groupId>
  222. <artifactId>s3</artifactId>
  223. <version>${aws.sdk.version}</version>
  224. </dependency>
  225. <!-- 基于 AWS CRT 的 S3 客户端的性能增强的 S3 传输管理器 -->
  226. <dependency>
  227. <groupId>software.amazon.awssdk</groupId>
  228. <artifactId>s3-transfer-manager</artifactId>
  229. <version>${aws.sdk.version}</version>
  230. </dependency>
  231. <!-- 将基于 Netty 的 HTTP 客户端 -->
  232. <dependency>
  233. <groupId>software.amazon.awssdk</groupId>
  234. <artifactId>netty-nio-client</artifactId>
  235. <version>${aws.sdk.version}</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>de.codecentric</groupId>
  239. <artifactId>spring-boot-admin-starter-server</artifactId>
  240. <version>${spring-boot-admin.version}</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>de.codecentric</groupId>
  244. <artifactId>spring-boot-admin-starter-client</artifactId>
  245. <version>${spring-boot-admin.version}</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>commons-io</groupId>
  249. <artifactId>commons-io</artifactId>
  250. <version>2.15.0</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>com.alibaba</groupId>
  254. <artifactId>fastjson</artifactId>
  255. <version>${fastjson.version}</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>org.apache.poi</groupId>
  259. <artifactId>poi</artifactId>
  260. <version>${poi.version}</version>
  261. </dependency>
  262. <dependency>
  263. <groupId>org.apache.poi</groupId>
  264. <artifactId>poi-ooxml</artifactId>
  265. <version>${poi.version}</version>
  266. </dependency>
  267. <dependency>
  268. <groupId>cn.idev.excel</groupId>
  269. <artifactId>fastexcel</artifactId>
  270. <version>${fastexcel.version}</version>
  271. </dependency>
  272. <!--redisson-->
  273. <dependency>
  274. <groupId>org.redisson</groupId>
  275. <artifactId>redisson-spring-boot-starter</artifactId>
  276. <version>${redisson.version}</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>com.baomidou</groupId>
  280. <artifactId>lock4j-redisson-spring-boot-starter</artifactId>
  281. <version>${lock4j.version}</version>
  282. </dependency>
  283. <!-- 加密包引入 -->
  284. <dependency>
  285. <groupId>org.bouncycastle</groupId>
  286. <artifactId>bcprov-jdk15to18</artifactId>
  287. <version>${bouncycastle.version}</version>
  288. </dependency>
  289. <dependency>
  290. <groupId>io.github.linpeilie</groupId>
  291. <artifactId>mapstruct-plus-spring-boot-starter</artifactId>
  292. <version>${mapstruct-plus.version}</version>
  293. </dependency>
  294. <!-- 离线IP地址定位库 ip2region -->
  295. <dependency>
  296. <groupId>org.lionsoul</groupId>
  297. <artifactId>ip2region</artifactId>
  298. <version>${ip2region.version}</version>
  299. </dependency>
  300. <!--短信sms4j-->
  301. <dependency>
  302. <groupId>org.dromara.sms4j</groupId>
  303. <artifactId>sms4j-spring-boot-starter</artifactId>
  304. <version>${sms4j.version}</version>
  305. </dependency>
  306. <!-- common 的依赖配置-->
  307. <dependency>
  308. <groupId>com.vap</groupId>
  309. <artifactId>vb-common-bom</artifactId>
  310. <version>${revision}</version>
  311. <type>pom</type>
  312. <scope>import</scope>
  313. </dependency>
  314. <dependency>
  315. <groupId>com.vap</groupId>
  316. <artifactId>vb-system</artifactId>
  317. <version>${revision}</version>
  318. </dependency>
  319. <dependency>
  320. <groupId>com.vap</groupId>
  321. <artifactId>vb-job</artifactId>
  322. <version>${revision}</version>
  323. </dependency>
  324. <dependency>
  325. <groupId>com.vap</groupId>
  326. <artifactId>vb-workflow</artifactId>
  327. <version>${revision}</version>
  328. </dependency>
  329. <dependency>
  330. <groupId>com.vap</groupId>
  331. <artifactId>vb-generator</artifactId>
  332. <version>${revision}</version>
  333. </dependency>
  334. <dependency>
  335. <groupId>com.vap</groupId>
  336. <artifactId>vb-base</artifactId>
  337. <version>${revision}</version>
  338. </dependency>
  339. <dependency>
  340. <groupId>com.vap</groupId>
  341. <artifactId>vb-breeding</artifactId>
  342. <version>${revision}</version>
  343. </dependency>
  344. </dependencies>
  345. </dependencyManagement>
  346. <build>
  347. <plugins>
  348. <plugin>
  349. <groupId>org.apache.maven.plugins</groupId>
  350. <artifactId>maven-compiler-plugin</artifactId>
  351. <version>${maven-compiler-plugin.version}</version>
  352. <configuration>
  353. <source>${java.version}</source>
  354. <target>${java.version}</target>
  355. <encoding>${project.build.sourceEncoding}</encoding>
  356. <annotationProcessorPaths>
  357. <path>
  358. <groupId>com.github.therapi</groupId>
  359. <artifactId>therapi-runtime-javadoc-scribe</artifactId>
  360. <version>${therapi-javadoc.version}</version>
  361. </path>
  362. <path>
  363. <groupId>org.projectlombok</groupId>
  364. <artifactId>lombok</artifactId>
  365. <version>${lombok.version}</version>
  366. </path>
  367. <path>
  368. <groupId>org.springframework.boot</groupId>
  369. <artifactId>spring-boot-configuration-processor</artifactId>
  370. <version>${spring-boot.version}</version>
  371. </path>
  372. <path>
  373. <groupId>io.github.linpeilie</groupId>
  374. <artifactId>mapstruct-plus-processor</artifactId>
  375. <version>${mapstruct-plus.version}</version>
  376. </path>
  377. <path>
  378. <groupId>org.projectlombok</groupId>
  379. <artifactId>lombok-mapstruct-binding</artifactId>
  380. <version>${mapstruct-plus.lombok.version}</version>
  381. </path>
  382. </annotationProcessorPaths>
  383. <compilerArgs>
  384. <arg>-parameters</arg>
  385. </compilerArgs>
  386. </configuration>
  387. </plugin>
  388. <!-- 单元测试使用 -->
  389. <plugin>
  390. <groupId>org.apache.maven.plugins</groupId>
  391. <artifactId>maven-surefire-plugin</artifactId>
  392. <version>${maven-surefire-plugin.version}</version>
  393. <configuration>
  394. <!-- 根据打包环境执行对应的@Tag测试方法 -->
  395. <groups>${profiles.active}</groups>
  396. <!-- 排除标签 -->
  397. <excludedGroups>exclude</excludedGroups>
  398. </configuration>
  399. </plugin>
  400. <!-- 统一版本号管理 -->
  401. <plugin>
  402. <groupId>org.codehaus.mojo</groupId>
  403. <artifactId>flatten-maven-plugin</artifactId>
  404. <version>${flatten-maven-plugin.version}</version>
  405. <configuration>
  406. <updatePomFile>true</updatePomFile>
  407. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  408. </configuration>
  409. <executions>
  410. <execution>
  411. <id>flatten</id>
  412. <phase>process-resources</phase>
  413. <goals>
  414. <goal>flatten</goal>
  415. </goals>
  416. </execution>
  417. <execution>
  418. <id>flatten.clean</id>
  419. <phase>clean</phase>
  420. <goals>
  421. <goal>clean</goal>
  422. </goals>
  423. </execution>
  424. </executions>
  425. </plugin>
  426. </plugins>
  427. <resources>
  428. <resource>
  429. <directory>src/main/resources</directory>
  430. <!-- 关闭过滤 -->
  431. <filtering>false</filtering>
  432. </resource>
  433. <resource>
  434. <directory>src/main/resources</directory>
  435. <!-- 引入所有 匹配文件进行过滤 -->
  436. <includes>
  437. <include>application*</include>
  438. <include>bootstrap*</include>
  439. <include>banner*</include>
  440. </includes>
  441. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  442. <filtering>true</filtering>
  443. </resource>
  444. </resources>
  445. </build>
  446. <repositories>
  447. <repository>
  448. <id>public</id>
  449. <name>huawei nexus</name>
  450. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  451. <releases>
  452. <enabled>true</enabled>
  453. </releases>
  454. </repository>
  455. </repositories>
  456. <pluginRepositories>
  457. <pluginRepository>
  458. <id>public</id>
  459. <name>huawei nexus</name>
  460. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  461. <releases>
  462. <enabled>true</enabled>
  463. </releases>
  464. <snapshots>
  465. <enabled>false</enabled>
  466. </snapshots>
  467. </pluginRepository>
  468. </pluginRepositories>
  469. </project>