pom.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. </modules>
  27. <name>${project.artifactId}</name>
  28. <description>芋道项目基础脚手架</description>
  29. <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
  30. <properties>
  31. <revision>2.1.0-snapshot</revision>
  32. <!-- Maven 相关 -->
  33. <java.version>17</java.version>
  34. <maven.compiler.source>${java.version}</maven.compiler.source>
  35. <maven.compiler.target>${java.version}</maven.compiler.target>
  36. <maven-surefire-plugin.version>3.2.2</maven-surefire-plugin.version>
  37. <maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
  38. <flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>
  39. <!-- 看看咋放到 bom 里 -->
  40. <lombok.version>1.18.30</lombok.version>
  41. <spring.boot.version>3.2.2</spring.boot.version>
  42. <mapstruct.version>1.5.5.Final</mapstruct.version>
  43. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  44. </properties>
  45. <dependencyManagement>
  46. <dependencies>
  47. <dependency>
  48. <groupId>cn.iocoder.boot</groupId>
  49. <artifactId>yudao-dependencies</artifactId>
  50. <version>${revision}</version>
  51. <type>pom</type>
  52. <scope>import</scope>
  53. </dependency>
  54. </dependencies>
  55. </dependencyManagement>
  56. <build>
  57. <pluginManagement>
  58. <plugins>
  59. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  60. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-surefire-plugin</artifactId>
  64. <version>${maven-surefire-plugin.version}</version>
  65. </plugin>
  66. <!-- maven-compiler-plugin 插件,解决 spring-boot-configuration-processor + 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. <groupId>org.mapstruct</groupId>
  86. <artifactId>mapstruct-processor</artifactId>
  87. <version>${mapstruct.version}</version>
  88. </path>
  89. </annotationProcessorPaths>
  90. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  91. <debug>false</debug>
  92. <compilerArgs>
  93. <arg>-parameters</arg>
  94. </compilerArgs>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.codehaus.mojo</groupId>
  99. <artifactId>flatten-maven-plugin</artifactId>
  100. </plugin>
  101. </plugins>
  102. </pluginManagement>
  103. <plugins>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-compiler-plugin</artifactId>
  107. <version>${maven-compiler-plugin.version}</version>
  108. <configuration>
  109. <source>17</source>
  110. <target>17</target>
  111. </configuration>
  112. </plugin>
  113. <!-- 统一 revision 版本 -->
  114. <plugin>
  115. <groupId>org.codehaus.mojo</groupId>
  116. <artifactId>flatten-maven-plugin</artifactId>
  117. <version>${flatten-maven-plugin.version}</version>
  118. <configuration>
  119. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  120. <updatePomFile>true</updatePomFile>
  121. </configuration>
  122. <executions>
  123. <execution>
  124. <goals>
  125. <goal>flatten</goal>
  126. </goals>
  127. <id>flatten</id>
  128. <phase>process-resources</phase>
  129. </execution>
  130. <execution>
  131. <goals>
  132. <goal>clean</goal>
  133. </goals>
  134. <id>flatten.clean</id>
  135. <phase>clean</phase>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. </plugins>
  140. </build>
  141. <!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 -->
  142. <repositories>
  143. <repository>
  144. <id>huaweicloud</id>
  145. <name>huawei</name>
  146. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  147. </repository>
  148. <repository>
  149. <id>aliyunmaven</id>
  150. <name>aliyun</name>
  151. <url>https://maven.aliyun.com/repository/public</url>
  152. </repository>
  153. </repositories>
  154. </project>