| <?xml version="1.0" encoding="UTF-8"?> | 
| <project xmlns="http://maven.apache.org/POM/4.0.0" | 
|          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 
|          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 
|     <modelVersion>4.0.0</modelVersion> | 
|     <groupId>cn.lihu</groupId> | 
|     <artifactId>jh</artifactId> | 
|     <version>${revision}</version> | 
|     <packaging>pom</packaging> | 
|     <modules> | 
|         <module>jh-dependencies</module> | 
|         <module>jh-framework</module> | 
|         <!-- Server 主项目 --> | 
|         <module>jh-server</module> | 
|         <!-- 各种 module 拓展 --> | 
|         <module>jh-module-system</module> | 
|         <module>jh-module-infra</module> | 
|         <module>jh-module-ecg</module> | 
| <!--        <module>jh-module-member</module>--> | 
| <!--        <module>jh-module-bpm</module>--> | 
| <!--        <module>jh-module-report</module>--> | 
| <!--        <module>jh-module-mp</module>--> | 
| <!--        <module>jh-module-pay</module>--> | 
| <!--        <module>jh-module-mall</module>--> | 
| <!--        <module>jh-module-crm</module>--> | 
| <!--        <module>jh-module-erp</module>--> | 
| <!--        <module>jh-module-ai</module>--> | 
|     </modules> | 
|   | 
|     <name>${project.artifactId}</name> | 
|     <description>芋道项目基础脚手架</description> | 
|     <url>https://github.com/YunaiV/ruoyi-vue-pro</url> | 
|   | 
|     <properties> | 
|         <revision>2.2.0-jdk8-snapshot</revision> | 
|         <!-- Maven 相关 --> | 
|         <java.version>21</java.version> | 
|         <maven.compiler.source>${java.version}</maven.compiler.source> | 
|         <maven.compiler.target>${java.version}</maven.compiler.target> | 
|         <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version> | 
|         <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version> | 
|         <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version> | 
|         <!-- 看看咋放到 bom 里 --> | 
|         <lombok.version>1.18.34</lombok.version> | 
|         <spring.boot.version>2.7.18</spring.boot.version> | 
|         <openfeign.version>3.1.3</openfeign.version> | 
|         <mapstruct.version>1.5.5.Final</mapstruct.version> | 
|         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 
|     </properties> | 
|   | 
|     <dependencyManagement> | 
|         <dependencies> | 
|             <dependency> | 
|                 <groupId>cn.lihu</groupId> | 
|                 <artifactId>jh-dependencies</artifactId> | 
|                 <version>${revision}</version> | 
|                 <type>pom</type> | 
|                 <scope>import</scope> | 
|             </dependency> | 
|         </dependencies> | 
|     </dependencyManagement> | 
|   | 
|     <build> | 
|         <pluginManagement> | 
|             <plugins> | 
|                 <!-- maven-surefire-plugin 插件,用于运行单元测试。 --> | 
|                 <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 --> | 
|                 <plugin> | 
|                     <groupId>org.apache.maven.plugins</groupId> | 
|                     <artifactId>maven-surefire-plugin</artifactId> | 
|                     <version>${maven-surefire-plugin.version}</version> | 
|                 </plugin> | 
|                 <!-- maven-compiler-plugin 插件,解决 spring-boot-configuration-processor + Lombok + MapStruct 组合 --> | 
|                 <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada --> | 
|                 <plugin> | 
|                     <groupId>org.apache.maven.plugins</groupId> | 
|                     <artifactId>maven-compiler-plugin</artifactId> | 
|                     <version>${maven-compiler-plugin.version}</version> | 
|                     <configuration> | 
|                         <annotationProcessorPaths> | 
|                             <path> | 
|                                 <groupId>org.springframework.boot</groupId> | 
|                                 <artifactId>spring-boot-configuration-processor</artifactId> | 
|                                 <version>${spring.boot.version}</version> | 
|                             </path> | 
|                             <path> | 
|                                 <groupId>org.projectlombok</groupId> | 
|                                 <artifactId>lombok</artifactId> | 
|                                 <version>${lombok.version}</version> | 
|                             </path> | 
|                             <path> | 
|                                 <groupId>org.mapstruct</groupId> | 
|                                 <artifactId>mapstruct-processor</artifactId> | 
|                                 <version>${mapstruct.version}</version> | 
|                             </path> | 
|                         </annotationProcessorPaths> | 
|                     </configuration> | 
|                 </plugin> | 
|                 <plugin> | 
|                     <groupId>org.codehaus.mojo</groupId> | 
|                     <artifactId>flatten-maven-plugin</artifactId> | 
|                 </plugin> | 
|             </plugins> | 
|         </pluginManagement> | 
|   | 
|         <plugins> | 
|             <!-- 统一 revision 版本 --> | 
|             <plugin> | 
|                 <groupId>org.codehaus.mojo</groupId> | 
|                 <artifactId>flatten-maven-plugin</artifactId> | 
|                 <version>${flatten-maven-plugin.version}</version> | 
|                 <configuration> | 
|                     <flattenMode>resolveCiFriendliesOnly</flattenMode> | 
|                     <updatePomFile>true</updatePomFile> | 
|                 </configuration> | 
|                 <executions> | 
|                     <execution> | 
|                         <goals> | 
|                             <goal>flatten</goal> | 
|                         </goals> | 
|                         <id>flatten</id> | 
|                         <phase>process-resources</phase> | 
|                     </execution> | 
|                     <execution> | 
|                         <goals> | 
|                             <goal>clean</goal> | 
|                         </goals> | 
|                         <id>flatten.clean</id> | 
|                         <phase>clean</phase> | 
|                     </execution> | 
|                 </executions> | 
|             </plugin> | 
|         </plugins> | 
|     </build> | 
|   | 
|     <!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 --> | 
|     <repositories> | 
|         <repository> | 
|             <id>huaweicloud</id> | 
|             <name>huawei</name> | 
|             <url>https://mirrors.huaweicloud.com/repository/maven/</url> | 
|         </repository> | 
|         <repository> | 
|             <id>aliyunmaven</id> | 
|             <name>aliyun</name> | 
|             <url>https://maven.aliyun.com/repository/public</url> | 
|         </repository> | 
|   | 
|         <repository> | 
|             <id>spring-milestones</id> | 
|             <name>Spring Milestones</name> | 
|             <url>https://repo.spring.io/milestone</url> | 
|             <snapshots> | 
|                 <enabled>false</enabled> | 
|             </snapshots> | 
|         </repository> | 
|         <repository> | 
|             <id>spring-snapshots</id> | 
|             <name>Spring Snapshots</name> | 
|             <url>https://repo.spring.io/snapshot</url> | 
|             <releases> | 
|                 <enabled>false</enabled> | 
|             </releases> | 
|         </repository> | 
|     </repositories> | 
|   | 
| </project> |