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