pom.xml 7.0 KB

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