pom.xml 7.4 KB

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