pom.xml 5.9 KB

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