pom.xml 5.9 KB

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