pom.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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.08-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.2.2</maven-surefire-plugin.version>
  39. <maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
  40. <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
  41. <!-- maven-surefire-plugin 暂时无法通过 bom 的依赖读取(兼容老版本 IDEA 2024 及以前版本) -->
  42. <lombok.version>1.18.38</lombok.version>
  43. <spring.boot.version>3.4.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. </dependencies>
  57. </dependencyManagement>
  58. <build>
  59. <pluginManagement>
  60. <plugins>
  61. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  62. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  63. <plugin>
  64. <groupId>org.apache.maven.plugins</groupId>
  65. <artifactId>maven-surefire-plugin</artifactId>
  66. <version>${maven-surefire-plugin.version}</version>
  67. </plugin>
  68. <!-- maven-compiler-plugin 插件,解决 spring-boot-configuration-processor + Lombok + MapStruct 组合 -->
  69. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-compiler-plugin</artifactId>
  73. <version>${maven-compiler-plugin.version}</version>
  74. <configuration>
  75. <annotationProcessorPaths>
  76. <path>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-configuration-processor</artifactId>
  79. <version>${spring.boot.version}</version>
  80. </path>
  81. <path>
  82. <groupId>org.projectlombok</groupId>
  83. <artifactId>lombok</artifactId>
  84. <version>${lombok.version}</version>
  85. </path>
  86. <path>
  87. <!-- 确保 Lombok 生成的 getter/setter 方法能被 MapStruct 正确识别,
  88. 避免出现 No property named “xxx" exists 的编译错误 -->
  89. <groupId>org.projectlombok</groupId>
  90. <artifactId>lombok-mapstruct-binding</artifactId>
  91. <version>0.2.0</version>
  92. </path>
  93. <path>
  94. <groupId>org.mapstruct</groupId>
  95. <artifactId>mapstruct-processor</artifactId>
  96. <version>${mapstruct.version}</version>
  97. </path>
  98. </annotationProcessorPaths>
  99. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  100. <debug>false</debug>
  101. <compilerArgs>
  102. <arg>-parameters</arg>
  103. </compilerArgs>
  104. <!-- <source>${maven.compiler.source}</source> &lt;!&ndash; 与项目需求一致 &ndash;&gt;-->
  105. <!-- <target>${maven.compiler.target}</target>-->
  106. <!-- <release>17</release> &lt;!&ndash; JDK9+ 必须 &ndash;&gt;-->
  107. </configuration>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.codehaus.mojo</groupId>
  111. <artifactId>flatten-maven-plugin</artifactId>
  112. </plugin>
  113. </plugins>
  114. </pluginManagement>
  115. <plugins>
  116. <!-- 统一 revision 版本 -->
  117. <plugin>
  118. <groupId>org.codehaus.mojo</groupId>
  119. <artifactId>flatten-maven-plugin</artifactId>
  120. <version>${flatten-maven-plugin.version}</version>
  121. <configuration>
  122. <flattenMode>oss</flattenMode>
  123. <updatePomFile>true</updatePomFile>
  124. </configuration>
  125. <executions>
  126. <execution>
  127. <goals>
  128. <goal>flatten</goal>
  129. </goals>
  130. <id>flatten</id>
  131. <phase>process-resources</phase>
  132. </execution>
  133. <execution>
  134. <goals>
  135. <goal>clean</goal>
  136. </goals>
  137. <id>flatten.clean</id>
  138. <phase>clean</phase>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. </plugins>
  143. </build>
  144. <!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 -->
  145. <repositories>
  146. <repository>
  147. <id>huaweicloud</id>
  148. <name>huawei</name>
  149. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  150. </repository>
  151. <repository>
  152. <id>aliyunmaven</id>
  153. <name>aliyun</name>
  154. <url>https://maven.aliyun.com/repository/public</url>
  155. </repository>
  156. <repository>
  157. <id>spring-milestones</id>
  158. <name>Spring Milestones</name>
  159. <url>https://repo.spring.io/milestone</url>
  160. <snapshots>
  161. <enabled>false</enabled>
  162. </snapshots>
  163. </repository>
  164. <repository>
  165. <id>spring-snapshots</id>
  166. <name>Spring Snapshots</name>
  167. <url>https://repo.spring.io/snapshot</url>
  168. <releases>
  169. <enabled>false</enabled>
  170. </releases>
  171. </repository>
  172. </repositories>
  173. </project>