pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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.tz.cloud</groupId>
  7. <artifactId>tz</artifactId>
  8. <version>${revision}</version>
  9. <packaging>pom</packaging>
  10. <modules>
  11. <module>tz-dependencies</module>
  12. <module>tz-gateway</module>
  13. <module>tz-framework</module>
  14. <!-- 各种 module 拓展 -->
  15. <module>tz-module-system</module>
  16. <module>tz-module-infra</module>
  17. <module>tz-module-bpm</module>
  18. <module>tz-module-member</module>
  19. <module>tz-module-mp</module>
  20. <module>tz-module-laboratory</module>
  21. <module>tz-module-pressure</module>
  22. <module>tz-module-grape-city</module>
  23. <module>tz-module-pipeline</module>
  24. <!-- 友情提示:基于 Spring AI 实现 LLM 大模型的接入,需要使用 JDK17 版本,详细可见 https://doc.iocoder.cn/ai/build/ -->
  25. <!-- <module>tz-module-ai</module>-->
  26. </modules>
  27. <name>${project.artifactId}</name>
  28. <description>特种项目基础脚手架</description>
  29. <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
  30. <properties>
  31. <revision>2.4.0-SNAPSHOT</revision>
  32. <!-- Maven 相关 -->
  33. <java.version>17</java.version>
  34. <maven.compiler.source>${java.version}</maven.compiler.source>
  35. <maven.compiler.target>${java.version}</maven.compiler.target>
  36. <maven-surefire-plugin.version>3.2.2</maven-surefire-plugin.version>
  37. <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
  38. <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
  39. <!-- 看看咋放到 bom 里 -->
  40. <lombok.version>1.18.36</lombok.version>
  41. <spring.boot.version>3.4.7</spring.boot.version>
  42. <mapstruct.version>1.6.3</mapstruct.version>
  43. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  44. </properties>
  45. <dependencyManagement>
  46. <dependencies>
  47. <dependency>
  48. <groupId>cn.tz.cloud</groupId>
  49. <artifactId>tz-dependencies</artifactId>
  50. <version>${revision}</version>
  51. <type>pom</type>
  52. <scope>import</scope>
  53. </dependency>
  54. </dependencies>
  55. </dependencyManagement>
  56. <dependencies>
  57. <!-- Oracle JDBC Driver -->
  58. <dependency>
  59. <groupId>com.oracle.database.jdbc</groupId>
  60. <artifactId>ojdbc8</artifactId>
  61. <version>19.3.0.0</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.alibaba</groupId>
  65. <artifactId>dashscope-sdk-java</artifactId>
  66. </dependency>
  67. </dependencies>
  68. <build>
  69. <pluginManagement>
  70. <plugins>
  71. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  72. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-surefire-plugin</artifactId>
  76. <version>${maven-surefire-plugin.version}</version>
  77. </plugin>
  78. <!-- maven-compiler-plugin 插件,解决 Lombok + MapStruct 组合 -->
  79. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  80. <plugin>
  81. <groupId>org.apache.maven.plugins</groupId>
  82. <artifactId>maven-compiler-plugin</artifactId>
  83. <version>${maven-compiler-plugin.version}</version>
  84. <configuration>
  85. <annotationProcessorPaths>
  86. <path>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-configuration-processor</artifactId>
  89. <version>${spring.boot.version}</version>
  90. </path>
  91. <path>
  92. <groupId>org.projectlombok</groupId>
  93. <artifactId>lombok</artifactId>
  94. <version>${lombok.version}</version>
  95. </path>
  96. <path>
  97. <groupId>org.mapstruct</groupId>
  98. <artifactId>mapstruct-processor</artifactId>
  99. <version>${mapstruct.version}</version>
  100. </path>
  101. </annotationProcessorPaths>
  102. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  103. <debug>false</debug>
  104. <compilerArgs>
  105. <arg>-parameters</arg>
  106. </compilerArgs>
  107. </configuration>
  108. </plugin>
  109. </plugins>
  110. </pluginManagement>
  111. <plugins>
  112. <!-- 统一 revision 版本 -->
  113. <plugin>
  114. <groupId>org.codehaus.mojo</groupId>
  115. <artifactId>flatten-maven-plugin</artifactId>
  116. <version>${flatten-maven-plugin.version}</version>
  117. <configuration>
  118. <flattenMode>oss</flattenMode>
  119. <updatePomFile>true</updatePomFile>
  120. </configuration>
  121. <executions>
  122. <execution>
  123. <goals>
  124. <goal>flatten</goal>
  125. </goals>
  126. <id>flatten</id>
  127. <phase>process-resources</phase>
  128. </execution>
  129. <execution>
  130. <goals>
  131. <goal>clean</goal>
  132. </goals>
  133. <id>flatten.clean</id>
  134. <phase>clean</phase>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. </plugins>
  139. </build>
  140. <!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 -->
  141. <repositories>
  142. <repository>
  143. <id>huaweicloud</id>
  144. <name>huawei</name>
  145. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  146. </repository>
  147. <repository>
  148. <id>aliyunmaven</id>
  149. <name>aliyun</name>
  150. <url>https://maven.aliyun.com/repository/public</url>
  151. </repository>
  152. <repository>
  153. <id>spring-milestones</id>
  154. <name>Spring Milestones</name>
  155. <url>https://repo.spring.io/milestone</url>
  156. <snapshots>
  157. <enabled>false</enabled>
  158. </snapshots>
  159. </repository>
  160. <repository>
  161. <id>spring-snapshots</id>
  162. <name>Spring Snapshots</name>
  163. <url>https://repo.spring.io/snapshot</url>
  164. <releases>
  165. <enabled>false</enabled>
  166. </releases>
  167. </repository>
  168. </repositories>
  169. </project>