pom.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. <module>byzs-blockly</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>2.6.0-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.2.2</maven-surefire-plugin.version>
  33. <maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
  34. <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
  35. <!-- 看看咋放到 bom 里 -->
  36. <lombok.version>1.18.36</lombok.version>
  37. <spring.boot.version>3.4.5</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>cn.iocoder.boot</groupId>
  45. <artifactId>byzs-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. </plugin>
  62. <!-- maven-compiler-plugin 插件,解决 spring-boot-configuration-processor + Lombok + MapStruct 组合 -->
  63. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-compiler-plugin</artifactId>
  67. <version>${maven-compiler-plugin.version}</version>
  68. <configuration>
  69. <annotationProcessorPaths>
  70. <path>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-configuration-processor</artifactId>
  73. <version>${spring.boot.version}</version>
  74. </path>
  75. <path>
  76. <groupId>org.projectlombok</groupId>
  77. <artifactId>lombok</artifactId>
  78. <version>${lombok.version}</version>
  79. </path>
  80. <path>
  81. <groupId>org.mapstruct</groupId>
  82. <artifactId>mapstruct-processor</artifactId>
  83. <version>${mapstruct.version}</version>
  84. </path>
  85. </annotationProcessorPaths>
  86. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  87. <debug>false</debug>
  88. <compilerArgs>
  89. <arg>-parameters</arg>
  90. </compilerArgs>
  91. </configuration>
  92. </plugin>
  93. <plugin>
  94. <groupId>org.codehaus.mojo</groupId>
  95. <artifactId>flatten-maven-plugin</artifactId>
  96. </plugin>
  97. </plugins>
  98. </pluginManagement>
  99. <plugins>
  100. <!-- 统一 revision 版本 -->
  101. <plugin>
  102. <groupId>org.codehaus.mojo</groupId>
  103. <artifactId>flatten-maven-plugin</artifactId>
  104. <version>${flatten-maven-plugin.version}</version>
  105. <configuration>
  106. <flattenMode>oss</flattenMode>
  107. <updatePomFile>true</updatePomFile>
  108. </configuration>
  109. <executions>
  110. <execution>
  111. <goals>
  112. <goal>flatten</goal>
  113. </goals>
  114. <id>flatten</id>
  115. <phase>process-resources</phase>
  116. </execution>
  117. <execution>
  118. <goals>
  119. <goal>clean</goal>
  120. </goals>
  121. <id>flatten.clean</id>
  122. <phase>clean</phase>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. </plugins>
  127. </build>
  128. <!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 -->
  129. <repositories>
  130. <repository>
  131. <id>huaweicloud</id>
  132. <name>huawei</name>
  133. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  134. </repository>
  135. <repository>
  136. <id>aliyunmaven</id>
  137. <name>aliyun</name>
  138. <url>https://maven.aliyun.com/repository/public</url>
  139. </repository>
  140. <repository>
  141. <id>spring-milestones</id>
  142. <name>Spring Milestones</name>
  143. <url>https://repo.spring.io/milestone</url>
  144. <snapshots>
  145. <enabled>false</enabled>
  146. </snapshots>
  147. </repository>
  148. <repository>
  149. <id>spring-snapshots</id>
  150. <name>Spring Snapshots</name>
  151. <url>https://repo.spring.io/snapshot</url>
  152. <releases>
  153. <enabled>false</enabled>
  154. </releases>
  155. </repository>
  156. </repositories>
  157. </project>