pom.xml 6.3 KB

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