pom.xml 5.8 KB

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