|
|
<?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">
|
|
|
|
|
|
<!-- Maven 项目对象模型(POM)的版本号,通常固定为 4.0.0,表示遵循的 POM 规范版本 -->
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
<!-- 项目的groupId,是项目在 Maven 仓库中的唯一标识,一般采用反向域名的格式,用于区分不同组织或公司下的项目 -->
|
|
|
<groupId>com.xcs.wx</groupId>
|
|
|
<!-- 项目的artifactId,是项目在同一 groupId 下的唯一标识,相当于项目的名称,与 groupId 一起构成项目在 Maven 仓库中的坐标 -->
|
|
|
<artifactId>wx-dump-4j</artifactId>
|
|
|
<!-- 项目的打包类型,这里设置为 "pom",表示这是一个聚合项目或者父项目,本身不会生成可部署的构件(如 jar 包、war 包等),
|
|
|
而是用于管理子项目以及统一配置依赖等信息 -->
|
|
|
<packaging>pom</packaging>
|
|
|
<!-- 项目的版本号,这里使用了一个属性(${revision})来定义,后续可以在 properties 元素中对该属性进行赋值 -->
|
|
|
<version>${revision}</version>
|
|
|
|
|
|
<!-- 定义项目包含的子模块,这些子模块会作为当前项目的一部分被统一管理,例如在构建时可以一起构建等 -->
|
|
|
<modules>
|
|
|
<!-- 第一个子模块,模块名称为 "wx-dump-admin",Maven 会根据配置去查找对应的子项目目录并进行相关构建操作 -->
|
|
|
<module>wx-dump-admin</module>
|
|
|
<!-- 第二个子模块,模块名称为 "wx-dump-dist",同样会被纳入当前项目的管理范畴 -->
|
|
|
<module>wx-dump-dist</module>
|
|
|
</modules>
|
|
|
|
|
|
<!-- 定义项目中使用的各种属性,这些属性可以在项目的其他地方通过 ${属性名} 的方式进行引用 -->
|
|
|
<properties>
|
|
|
<!-- 指定项目编译时使用的 Java 版本,这里设置源文件和目标文件的编译版本都为 11 -->
|
|
|
<maven.compiler.source>11</maven.compiler.source>
|
|
|
<maven.compiler.target>11</maven.compiler.target>
|
|
|
<!-- 指定 Maven Assembly 插件的版本号 -->
|
|
|
<maven-assembly-plugin.version>3.5.0</maven-assembly-plugin.version>
|
|
|
<!-- 指定项目构建时源文件的编码格式为 UTF-8 -->
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<!-- 对之前版本号中使用的 ${revision} 属性进行赋值,这里设置项目的版本为 1.1.0 -->
|
|
|
<revision>1.1.0</revision>
|
|
|
</properties>
|
|
|
|
|
|
<!-- 依赖管理部分,用于统一管理项目及其子项目所依赖的各种外部库的版本等信息,
|
|
|
子项目可以继承这里定义的依赖配置,但不一定会自动引入这些依赖(具体是否引入要看子项目的依赖配置) -->
|
|
|
<dependencyManagement>
|
|
|
<dependencies>
|
|
|
<!-- 引入 Spring Boot 的 Web 启动器依赖,指定版本为 2.7.15,该依赖包含构建 Web 应用所需的一系列基础依赖,
|
|
|
方便快速搭建基于 Spring Boot 的 Web 项目 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
<version>2.7.15</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 Spring Boot 的 Thymeleaf 启动器依赖,版本为 2.7.15,用于在 Spring Boot 项目中集成 Thymeleaf 模板引擎,
|
|
|
实现页面视图的渲染 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
|
<version>2.7.15</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 SQLite 的 JDBC 驱动依赖,版本是 3.34.0,用于在项目中连接和操作 SQLite 数据库 -->
|
|
|
<dependency>
|
|
|
<groupId>org.xerial</groupId>
|
|
|
<artifactId>sqlite-jdbc</artifactId>
|
|
|
<version>3.34.0</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 Lombok 依赖,版本为 1.18.20,Lombok 可以通过注解方式简化 Java 代码,自动生成诸如 getter、setter、构造函数等方法 -->
|
|
|
<dependency>
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
<artifactId>lombok</artifactId>
|
|
|
<version>1.18.20</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 MyBatis Plus 的 Spring Boot 启动器依赖,版本 3.5.4.1,MyBatis Plus 是 MyBatis 的增强工具,
|
|
|
提供通用的 CRUD 操作等便捷功能,便于数据库访问层开发 -->
|
|
|
<dependency>
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
|
|
<version>3.5.4.1</version>
|
|
|
</dependency>
|
|
|
<!-- 引入动态数据源的 Spring Boot 启动器依赖,版本 4.2.0,用于实现项目中动态切换数据源的功能 -->
|
|
|
<dependency>
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
|
|
|
<version>4.2.0</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 Druid 的 Spring Boot 启动器依赖,版本 1.2.20,Druid 是性能优秀的数据库连接池,还具备监控等功能 -->
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|
|
<version>1.2.20</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 MapStruct 的核心依赖,版本 1.4.2.Final,MapStruct 用于生成类型安全、高性能且遵循 Java 规范的 bean 映射代码 -->
|
|
|
<dependency>
|
|
|
<groupId>org.mapstruct</groupId>
|
|
|
<artifactId>mapstruct</artifactId>
|
|
|
<version>1.4.2.Final</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 MapStruct 的处理器依赖,版本 1.4.2.Final,用于在编译阶段处理 MapStruct 注解,生成相应的映射代码 -->
|
|
|
<dependency>
|
|
|
<groupId>org.mapstruct</groupId>
|
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
|
<version>1.4.2.Final</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 Hutool 工具集依赖,版本 5.8.16,Hutool 提供大量实用工具类,涵盖字符串处理、文件操作、日期时间处理等多方面 -->
|
|
|
<dependency>
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
<artifactId>hutool-all</artifactId>
|
|
|
<version>5.8.16</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 JNA(Java Native Access)核心依赖,版本 5.8.0,它允许 Java 程序调用本地代码库,便于与底层系统交互 -->
|
|
|
<dependency>
|
|
|
<groupId>net.java.dev.jna</groupId>
|
|
|
<artifactId>jna</artifactId>
|
|
|
<version>5.8.0</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 JNA 平台相关依赖,版本 5.8.0,提供特定平台下的扩展功能 -->
|
|
|
<dependency>
|
|
|
<groupId>net.java.dev.jna</groupId>
|
|
|
<artifactId>jna-platform</artifactId>
|
|
|
<version>5.8.0</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 Google 的 Protocol Buffers(protobuf)核心依赖,版本 3.25.1,protobuf 用于数据序列化和通信协议等场景 -->
|
|
|
<dependency>
|
|
|
<groupId>com.google.protobuf</groupId>
|
|
|
<artifactId>protobuf-java</artifactId>
|
|
|
<version>3.25.1</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 Google 的 Protocol Buffers(protobuf)工具类依赖,版本 3.25.1,提供方便操作 protobuf 数据的实用方法 -->
|
|
|
<dependency>
|
|
|
<groupId>com.google.protobuf</groupId>
|
|
|
<artifactId>protobuf-java-util</artifactId>
|
|
|
<version>3.25.1</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 gRPC 相关的所有依赖,版本 1.11.0,gRPC 是高性能 RPC 框架,常用于微服务间通信 -->
|
|
|
<dependency>
|
|
|
<groupId>io.grpc</groupId>
|
|
|
<artifactId>grpc-all</artifactId>
|
|
|
<version>1.11.0</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 EasyExcel 依赖,版本 3.3.3,用于方便地操作 Excel 文件 -->
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>easyexcel</artifactId>
|
|
|
<version>3.3.3</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 Commons Compress 依赖,版本 1.19,用于操作各种压缩格式文件 -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
<artifactId>commons-compress</artifactId>
|
|
|
<version>1.19</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 Jackson 的 XML 数据格式模块依赖,版本 2.13.5,用于支持对象与 XML 数据的序列化和反序列化 -->
|
|
|
<dependency>
|
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
|
<artifactId>jackson-dataformat-xml</artifactId>
|
|
|
<version>2.13.5</version>
|
|
|
</dependency>
|
|
|
<!-- 引入 Commons Lang3 依赖,版本 3.12.0,提供大量对 Java 基本数据类型、字符串等操作的实用工具方法 -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
<version>3.12.0</version>
|
|
|
</dependency>
|
|
|
<!-- 引入名为 "wx-dump-admin" 的项目作为依赖,版本使用之前定义的 ${revision} 属性值,
|
|
|
通常表示当前项目与该子项目之间存在某种关联,比如依赖其提供的功能等 -->
|
|
|
<dependency>
|
|
|
<groupId>com.xcs.wx</groupId>
|
|
|
<artifactId>wx-dump-admin</artifactId>
|
|
|
<version>${revision}</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
</dependencyManagement>
|
|
|
|
|
|
</project> |