pom.xml 7.8 KB

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