pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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>byzs-bjdx</artifactId>
  8. <version>${revision}</version>
  9. <packaging>pom</packaging>
  10. <modules>
  11. <module>byzs-dependencies</module>
  12. <module>byzs-framework</module>
  13. <!-- Server 主项目 -->
  14. <module>byzs-server</module>
  15. <!-- 各种 module 拓展 -->
  16. <module>byzs-module-system</module>
  17. <module>byzs-module-infra</module>
  18. <module>byzs-module-ai</module>
  19. <module>byzs-course</module>
  20. <module>byzs-web</module>
  21. </modules>
  22. <name>${project.artifactId}</name>
  23. <description>博雅智算项目基础脚手架</description>
  24. <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
  25. <properties>
  26. <revision>2.6.0-SNAPSHOT</revision>
  27. <!-- Maven 相关 -->
  28. <java.version>17</java.version>
  29. <maven.compiler.source>${java.version}</maven.compiler.source>
  30. <maven.compiler.target>${java.version}</maven.compiler.target>
  31. <maven-surefire-plugin.version>3.2.2</maven-surefire-plugin.version>
  32. <maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
  33. <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
  34. <!-- 看看咋放到 bom 里 -->
  35. <lombok.version>1.18.36</lombok.version>
  36. <spring.boot.version>3.4.5</spring.boot.version>
  37. <mapstruct.version>1.6.3</mapstruct.version>
  38. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  39. </properties>
  40. <dependencyManagement>
  41. <dependencies>
  42. <dependency>
  43. <groupId>cn.iocoder.boot</groupId>
  44. <artifactId>byzs-dependencies</artifactId>
  45. <version>${revision}</version>
  46. <type>pom</type>
  47. <scope>import</scope>
  48. </dependency>
  49. </dependencies>
  50. </dependencyManagement>
  51. <build>
  52. <pluginManagement>
  53. <plugins>
  54. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  55. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-surefire-plugin</artifactId>
  59. <version>${maven-surefire-plugin.version}</version>
  60. </plugin>
  61. <!-- maven-compiler-plugin 插件,解决 spring-boot-configuration-processor + Lombok + MapStruct 组合 -->
  62. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  63. <plugin>
  64. <groupId>org.apache.maven.plugins</groupId>
  65. <artifactId>maven-compiler-plugin</artifactId>
  66. <version>${maven-compiler-plugin.version}</version>
  67. <configuration>
  68. <annotationProcessorPaths>
  69. <path>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-configuration-processor</artifactId>
  72. <version>${spring.boot.version}</version>
  73. </path>
  74. <path>
  75. <groupId>org.projectlombok</groupId>
  76. <artifactId>lombok</artifactId>
  77. <version>${lombok.version}</version>
  78. </path>
  79. <path>
  80. <groupId>org.mapstruct</groupId>
  81. <artifactId>mapstruct-processor</artifactId>
  82. <version>${mapstruct.version}</version>
  83. </path>
  84. </annotationProcessorPaths>
  85. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  86. <debug>false</debug>
  87. <compilerArgs>
  88. <arg>-parameters</arg>
  89. </compilerArgs>
  90. </configuration>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.codehaus.mojo</groupId>
  94. <artifactId>flatten-maven-plugin</artifactId>
  95. </plugin>
  96. </plugins>
  97. </pluginManagement>
  98. <plugins>
  99. <!-- 统一 revision 版本 -->
  100. <plugin>
  101. <groupId>org.codehaus.mojo</groupId>
  102. <artifactId>flatten-maven-plugin</artifactId>
  103. <version>${flatten-maven-plugin.version}</version>
  104. <configuration>
  105. <flattenMode>oss</flattenMode>
  106. <updatePomFile>true</updatePomFile>
  107. </configuration>
  108. <executions>
  109. <execution>
  110. <goals>
  111. <goal>flatten</goal>
  112. </goals>
  113. <id>flatten</id>
  114. <phase>process-resources</phase>
  115. </execution>
  116. <execution>
  117. <goals>
  118. <goal>clean</goal>
  119. </goals>
  120. <id>flatten.clean</id>
  121. <phase>clean</phase>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. </plugins>
  126. </build>
  127. <!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 -->
  128. <repositories>
  129. <repository>
  130. <id>huaweicloud</id>
  131. <name>huawei</name>
  132. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  133. </repository>
  134. <repository>
  135. <id>aliyunmaven</id>
  136. <name>aliyun</name>
  137. <url>https://maven.aliyun.com/repository/public</url>
  138. </repository>
  139. <repository>
  140. <id>spring-milestones</id>
  141. <name>Spring Milestones</name>
  142. <url>https://repo.spring.io/milestone</url>
  143. <snapshots>
  144. <enabled>false</enabled>
  145. </snapshots>
  146. </repository>
  147. <repository>
  148. <id>spring-snapshots</id>
  149. <name>Spring Snapshots</name>
  150. <url>https://repo.spring.io/snapshot</url>
  151. <releases>
  152. <enabled>false</enabled>
  153. </releases>
  154. </repository>
  155. </repositories>
  156. </project>