pom.xml 5.9 KB

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