pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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-museums</module>
  20. <!-- <module>yudao-module-museums-api</module>-->
  21. <!-- <module>yudao-module-museums-biz</module>-->
  22. <!-- <module>yudao-module-member</module>-->
  23. <!-- <module>yudao-module-bpm</module>-->
  24. <!-- <module>yudao-module-report</module>-->
  25. <!-- <module>yudao-module-mp</module>-->
  26. <!-- <module>yudao-module-pay</module>-->
  27. <!-- <module>yudao-module-mall</module>-->
  28. <!-- <module>yudao-module-crm</module>-->
  29. <!-- <module>yudao-module-erp</module>-->
  30. <!-- <module>yudao-module-ai</module>-->
  31. </modules>
  32. <name>${project.artifactId}</name>
  33. <description>芋道项目基础脚手架</description>
  34. <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
  35. <properties>
  36. <revision>2.2.0-jdk8-snapshot</revision>
  37. <!-- Maven 相关 -->
  38. <java.version>1.8</java.version>
  39. <maven.compiler.source>${java.version}</maven.compiler.source>
  40. <maven.compiler.target>${java.version}</maven.compiler.target>
  41. <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
  42. <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
  43. <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
  44. <!-- 看看咋放到 bom 里 -->
  45. <lombok.version>1.18.34</lombok.version>
  46. <spring.boot.version>2.7.18</spring.boot.version>
  47. <mapstruct.version>1.5.5.Final</mapstruct.version>
  48. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  49. </properties>
  50. <dependencyManagement>
  51. <dependencies>
  52. <dependency>
  53. <groupId>cn.iocoder.boot</groupId>
  54. <artifactId>yudao-dependencies</artifactId>
  55. <version>${revision}</version>
  56. <type>pom</type>
  57. <scope>import</scope>
  58. </dependency>
  59. </dependencies>
  60. </dependencyManagement>
  61. <build>
  62. <pluginManagement>
  63. <plugins>
  64. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  65. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  66. <plugin>
  67. <groupId>org.apache.maven.plugins</groupId>
  68. <artifactId>maven-surefire-plugin</artifactId>
  69. <version>${maven-surefire-plugin.version}</version>
  70. </plugin>
  71. <!-- maven-compiler-plugin 插件,解决 spring-boot-configuration-processor + Lombok + MapStruct 组合 -->
  72. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-compiler-plugin</artifactId>
  76. <version>${maven-compiler-plugin.version}</version>
  77. <configuration>
  78. <annotationProcessorPaths>
  79. <path>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-configuration-processor</artifactId>
  82. <version>${spring.boot.version}</version>
  83. </path>
  84. <path>
  85. <groupId>org.projectlombok</groupId>
  86. <artifactId>lombok</artifactId>
  87. <version>${lombok.version}</version>
  88. </path>
  89. <path>
  90. <groupId>org.mapstruct</groupId>
  91. <artifactId>mapstruct-processor</artifactId>
  92. <version>${mapstruct.version}</version>
  93. </path>
  94. </annotationProcessorPaths>
  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. <!-- 统一 revision 版本 -->
  105. <plugin>
  106. <groupId>org.codehaus.mojo</groupId>
  107. <artifactId>flatten-maven-plugin</artifactId>
  108. <version>${flatten-maven-plugin.version}</version>
  109. <configuration>
  110. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  111. <updatePomFile>true</updatePomFile>
  112. </configuration>
  113. <executions>
  114. <execution>
  115. <goals>
  116. <goal>flatten</goal>
  117. </goals>
  118. <id>flatten</id>
  119. <phase>process-resources</phase>
  120. </execution>
  121. <execution>
  122. <goals>
  123. <goal>clean</goal>
  124. </goals>
  125. <id>flatten.clean</id>
  126. <phase>clean</phase>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. </plugins>
  131. </build>
  132. <!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 -->
  133. <repositories>
  134. <repository>
  135. <id>huaweicloud</id>
  136. <name>huawei</name>
  137. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  138. </repository>
  139. <repository>
  140. <id>aliyunmaven</id>
  141. <name>aliyun</name>
  142. <url>https://maven.aliyun.com/repository/public</url>
  143. </repository>
  144. <repository>
  145. <id>spring-milestones</id>
  146. <name>Spring Milestones</name>
  147. <url>https://repo.spring.io/milestone</url>
  148. <snapshots>
  149. <enabled>false</enabled>
  150. </snapshots>
  151. </repository>
  152. <repository>
  153. <id>spring-snapshots</id>
  154. <name>Spring Snapshots</name>
  155. <url>https://repo.spring.io/snapshot</url>
  156. <releases>
  157. <enabled>false</enabled>
  158. </releases>
  159. </repository>
  160. </repositories>
  161. </project>