pom.xml 6.9 KB

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