pom.xml 5.8 KB

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