You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Onlineeducation/pom.xml

219 lines
7.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?xml version="1.0" encoding="UTF-8"?>
<!-- 声明 XML 文档的版本为 1.0,字符编码为 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<!-- 定义项目的根元素,指定 Maven POM 的命名空间和 XML 模式实例命名空间,并设置模式位置 -->
<modelVersion>4.0.0</modelVersion>
<!-- 指定项目的模型版本为 4.0.0 -->
<parent>
<!-- 定义项目的父项目配置 -->
<groupId>org.springframework.boot</groupId>
<!-- 父项目的组 ID这里是 Spring Boot 项目的组 ID -->
<artifactId>spring-boot-starter-parent</artifactId>
<!-- 父项目的工件 IDspring-boot-starter-parent 是 Spring Boot 的起始父项目 -->
<version>2.2.2.RELEASE</version>
<!-- 父项目的版本号 -->
<relativePath/> <!-- lookup parent from repository -->
<!-- 不指定父项目的相对路径,从仓库中查找父项目 -->
</parent>
<groupId>com.jlwl</groupId>
<!-- 项目的组 ID标识项目所属的组织或组 -->
<!-- 导入项目的名称 -->
<artifactId>springbootus5uu</artifactId>
<!-- 项目的工件 ID唯一标识项目 -->
<version>0.0.1-SNAPSHOT</version>
<!-- 项目的版本号,这里是一个快照版本 -->
<name>springboot-schema</name>
<!-- 项目的名称,用于展示等用途 -->
<description>springboot学习框架(war包对应的pom打war包执行【mvn clean package -f pom-war.xml】)</description>
<!-- 项目的描述信息,说明项目用途以及打 war 包的相关指令 -->
<packaging>war</packaging>
<!-- 指定项目打包的类型为 war 包 -->
<properties>
<!-- 定义项目的属性 -->
<java.version>1.8</java.version>
<!-- 指定项目使用的 Java 版本为 1.8 -->
<fastjson.version>1.2.8</fastjson.version>
<!-- 定义 fastjson 依赖的版本号为 1.2.8 -->
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
<!-- 定义 maven-jar-plugin 插件的版本号为 3.1.1 -->
</properties>
<dependencies>
<!-- 定义项目的依赖关系 -->
<dependency>
<!-- 单个依赖项的配置 -->
<groupId>org.springframework.boot</groupId>
<!-- 依赖的组 ID这里是 Spring Boot 的组 ID -->
<artifactId>spring-boot-starter-web</artifactId>
<!-- 依赖的工件 IDspring-boot-starter-web 是 Spring Boot 的 Web 启动器依赖 -->
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<!-- MyBatis Spring Boot 集成依赖的组 ID -->
<artifactId>mybatis-spring-boot-starter</artifactId>
<!-- MyBatis Spring Boot 启动器依赖的工件 ID -->
<version>2.1.1</version>
<!-- 依赖的版本号为 2.1.1 -->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<!-- Spring Boot 组 ID -->
<artifactId>spring-boot-starter-jdbc</artifactId>
<!-- Spring Boot 的 JDBC 启动器依赖的工件 ID -->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<!-- Spring Boot 组 ID -->
<artifactId>spring-boot-starter-tomcat</artifactId>
<!-- Spring Boot 的 Tomcat 启动器依赖的工件 ID -->
<scope>provided</scope>
<!-- 依赖的作用域为 provided表示在编译和测试阶段可用但在运行时由容器提供不会被打包进最终的 war 包 -->
</dependency>
<dependency>
<groupId>mysql</groupId>
<!-- MySQL 数据库驱动的组 ID -->
<artifactId>mysql-connector-java</artifactId>
<!-- MySQL 数据库驱动的工件 ID -->
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<!-- Apache Shiro 框架的组 ID -->
<artifactId>shiro-spring</artifactId>
<!-- Shiro 与 Spring 集成的依赖的工件 ID -->
<version>1.3.2</version>
<!-- 依赖的版本号为 1.3.2 -->
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<!-- 项目组 ID这里是 Baomidou -->
<artifactId>mybatis-plus</artifactId>
<!-- MyBatis-Plus 框架的工件 ID -->
<version>2.3</version>
<!-- 依赖的版本号为 2.3 -->
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<!-- Baomidou 组 ID -->
<artifactId>mybatisplus-spring-boot-starter</artifactId>
<!-- MyBatis-Plus 与 Spring Boot 集成的启动器依赖的工件 ID -->
<version>1.0.5</version>
<!-- 依赖的版本号为 1.0.5 -->
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<!-- Google Protocol Buffers 的组 ID -->
<artifactId>protobuf-java</artifactId>
<!-- Google Protocol Buffers Java 库的工件 ID -->
<version>3.10.0</version>
<!-- 依赖的版本号为 3.10.0 -->
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<!-- Apache Commons 项目的组 ID -->
<artifactId>commons-lang3</artifactId>
<!-- Apache Commons Lang 3 库的工件 ID -->
<version>3.0</version>
<!-- 依赖的版本号为 3.0 -->
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<!-- Java 验证 API 的组 ID -->
<artifactId>validation-api</artifactId>
<!-- 验证 API 的工件 ID -->
<version>2.0.1.Final</version>
<!-- 依赖的版本号为 2.0.1.Final -->
</dependency>
<dependency>
<groupId>commons-io</groupId>
<!-- Apache Commons IO 项目的组 ID -->
<artifactId>commons-io</artifactId>
<!-- Apache Commons IO 库的工件 ID -->
<version>2.5</version>
<!-- 依赖的版本号为 2.5 -->
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<!-- Hutool 工具库的组 ID -->
<artifactId>hutool-all</artifactId>
<!-- Hutool 全功能工具库的工件 ID -->
<version>4.0.12</version>
<!-- 依赖的版本号为 4.0.12 -->
</dependency>
<!-- FastJson -->
<dependency>
<groupId>com.alibaba</groupId>
<!-- 阿里巴巴的组 ID -->
<artifactId>fastjson</artifactId>
<!-- FastJson 库的工件 ID -->
<version>${fastjson.version}</version>
<!-- 使用之前定义的 fastjson.version 属性作为版本号 -->
</dependency>
<!-- 百度人工智能 -->
<dependency>
<groupId>com.baidu.aip</groupId>
<!-- 百度 AI 组 ID -->
<artifactId>java-sdk</artifactId>
<!-- 百度 AI Java SDK 的工件 ID -->
<version>4.4.1</version>
<!-- 依赖的版本号为 4.4.1 -->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<!-- Spring Boot 组 ID -->
<artifactId>spring-boot-starter-test</artifactId>
<!-- Spring Boot 测试启动器依赖的工件 ID -->
<scope>test</scope>
<!-- 依赖的作用域为测试 -->
<exclusions>
<!-- 排除不需要的依赖 -->
<exclusion>
<groupId>org.junit.vintage</groupId>
<!-- 要排除的依赖的组 ID -->
<artifactId>junit-vintage-engine</artifactId>
<!-- 要排除的依赖的工件 ID -->
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<!-- 定义项目的构建配置 -->
<finalName>springbootus5uu</finalName>
<!-- 设置最终生成的 war 包的名称为 springbootus5uu -->
<plugins>
<!-- 定义项目使用的插件 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<!-- Spring Boot 组 ID -->
<artifactId>spring-boot-maven-plugin</artifactId>
<!-- Spring Boot Maven 插件的工件 ID -->
</plugin>
<!-- 跳过单元测试 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<!-- Apache Maven 插件组 ID -->
<artifactId>maven-surefire-plugin</artifactId>
<!-- Maven Surefire 插件的工件 ID用于运行单元测试 -->
<configuration>
<!-- 插件的配置 -->
<skipTests>true</skipTests>
<!-- 设置为 true 表示在构建过程中跳过单元测试 -->
</configuration>
</plugin>
</plugins>
</build>
</project>