pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  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>cn.iocoder.boot</groupId>
  7. <artifactId>yudao</artifactId>
  8. <version>${revision}</version>
  9. <packaging>pom</packaging>
  10. <modules>
  11. <module>yudao-dependencies</module>
  12. <module>yudao-framework</module>
  13. <!-- Server 主项目 -->
  14. <module>yudao-server</module>
  15. <!-- 各种 module 拓展 -->
  16. <module>yudao-module-system</module>
  17. <module>yudao-module-infra</module>
  18. <!-- <module>yudao-module-member</module>-->
  19. <!-- <module>yudao-module-bpm</module>-->
  20. <!-- <module>yudao-module-report</module>-->
  21. <!-- <module>yudao-module-mp</module>-->
  22. <!-- <module>yudao-module-pay</module>-->
  23. <!-- <module>yudao-module-mall</module>-->
  24. <!-- <module>yudao-module-crm</module>-->
  25. <!-- <module>yudao-module-erp</module>-->
  26. <!-- <module>yudao-module-ai</module>-->
  27. <!-- <module>yudao-module-iot</module>-->
  28. </modules>
  29. <name>${project.artifactId}</name>
  30. <description>芋道项目基础脚手架</description>
  31. <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
  32. <properties>
  33. <revision>2025.11-SNAPSHOT</revision>
  34. <!-- Maven 相关 -->
  35. <java.version>17</java.version>
  36. <maven.compiler.source>${java.version}</maven.compiler.source>
  37. <maven.compiler.target>${java.version}</maven.compiler.target>
  38. <maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
  39. <maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
  40. <flatten-maven-plugin.version>1.7.2</flatten-maven-plugin.version>
  41. <!-- maven-surefire-plugin 暂时无法通过 bom 的依赖读取(兼容老版本 IDEA 2024 及以前版本) -->
  42. <lombok.version>1.18.42</lombok.version>
  43. <spring.boot.version>3.5.5</spring.boot.version>
  44. <mapstruct.version>1.6.3</mapstruct.version>
  45. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  46. </properties>
  47. <dependencyManagement>
  48. <dependencies>
  49. <dependency>
  50. <groupId>cn.iocoder.boot</groupId>
  51. <artifactId>yudao-dependencies</artifactId>
  52. <version>${revision}</version>
  53. <type>pom</type>
  54. <scope>import</scope>
  55. </dependency>
  56. <!-- 强制指定quartz版本 -->
  57. <dependency>
  58. <groupId>org.quartz-scheduler</groupId>
  59. <artifactId>quartz</artifactId>
  60. <version>2.5.2</version>
  61. </dependency>
  62. </dependencies>
  63. </dependencyManagement>
  64. <build>
  65. <pluginManagement>
  66. <plugins>
  67. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  68. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  69. <plugin>
  70. <groupId>org.apache.maven.plugins</groupId>
  71. <artifactId>maven-surefire-plugin</artifactId>
  72. <version>${maven-surefire-plugin.version}</version>
  73. </plugin>
  74. <!-- maven-compiler-plugin 插件,解决 spring-boot-configuration-processor + Lombok + MapStruct 组合 -->
  75. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-compiler-plugin</artifactId>
  79. <version>${maven-compiler-plugin.version}</version>
  80. <configuration>
  81. <annotationProcessorPaths>
  82. <path>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-configuration-processor</artifactId>
  85. <version>${spring.boot.version}</version>
  86. </path>
  87. <path>
  88. <groupId>org.projectlombok</groupId>
  89. <artifactId>lombok</artifactId>
  90. <version>${lombok.version}</version>
  91. </path>
  92. <path>
  93. <!-- 确保 Lombok 生成的 getter/setter 方法能被 MapStruct 正确识别,
  94. 避免出现 No property named “xxx" exists 的编译错误 -->
  95. <groupId>org.projectlombok</groupId>
  96. <artifactId>lombok-mapstruct-binding</artifactId>
  97. <version>0.2.0</version>
  98. </path>
  99. <path>
  100. <groupId>org.mapstruct</groupId>
  101. <artifactId>mapstruct-processor</artifactId>
  102. <version>${mapstruct.version}</version>
  103. </path>
  104. </annotationProcessorPaths>
  105. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  106. <debug>false</debug>
  107. <compilerArgs>
  108. <arg>-parameters</arg>
  109. </compilerArgs>
  110. </configuration>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.codehaus.mojo</groupId>
  114. <artifactId>flatten-maven-plugin</artifactId>
  115. </plugin>
  116. </plugins>
  117. </pluginManagement>
  118. <plugins>
  119. <!-- 统一 revision 版本 -->
  120. <plugin>
  121. <groupId>org.codehaus.mojo</groupId>
  122. <artifactId>flatten-maven-plugin</artifactId>
  123. <version>${flatten-maven-plugin.version}</version>
  124. <configuration>
  125. <flattenMode>oss</flattenMode>
  126. <updatePomFile>true</updatePomFile>
  127. </configuration>
  128. <executions>
  129. <execution>
  130. <goals>
  131. <goal>flatten</goal>
  132. </goals>
  133. <id>flatten</id>
  134. <phase>process-resources</phase>
  135. </execution>
  136. <execution>
  137. <goals>
  138. <goal>clean</goal>
  139. </goals>
  140. <id>flatten.clean</id>
  141. <phase>clean</phase>
  142. </execution>
  143. </executions>
  144. </plugin>
  145. </plugins>
  146. </build>
  147. <!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 -->
  148. <repositories>
  149. <repository>
  150. <id>huaweicloud</id>
  151. <name>huawei</name>
  152. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  153. </repository>
  154. <repository>
  155. <id>aliyunmaven</id>
  156. <name>aliyun</name>
  157. <url>https://maven.aliyun.com/repository/public</url>
  158. </repository>
  159. <repository>
  160. <id>spring-milestones</id>
  161. <name>Spring Milestones</name>
  162. <url>https://repo.spring.io/milestone</url>
  163. <snapshots>
  164. <enabled>false</enabled>
  165. </snapshots>
  166. </repository>
  167. <repository>
  168. <id>spring-snapshots</id>
  169. <name>Spring Snapshots</name>
  170. <url>https://repo.spring.io/snapshot</url>
  171. <releases>
  172. <enabled>false</enabled>
  173. </releases>
  174. </repository>
  175. </repositories>
  176. </project>