pom.xml 7.4 KB

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