pom.xml 6.1 KB

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