pom.xml 6.9 KB

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