323 lines
11 KiB
XML
323 lines
11 KiB
XML
<?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>com.ichangzuo</groupId>
|
|
<artifactId>server-java</artifactId>
|
|
<version>1.9</version>
|
|
<description>基于 Java 17 + SpringBoot 3 + Spring Security 构建的唱作网系统。</description>
|
|
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>3.3.2</version> <!-- lookup parent from repository -->
|
|
<relativePath/>
|
|
</parent>
|
|
|
|
<properties>
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
<maven.compiler.target>17</maven.compiler.target>
|
|
|
|
<hutool.version>5.8.27</hutool.version>
|
|
|
|
<mysql.version>8.0.28</mysql.version>
|
|
<druid.version>1.2.23</druid.version>
|
|
<mybatis-plus.version>3.5.7</mybatis-plus.version>
|
|
|
|
<knife4j.version>4.5.0</knife4j.version>
|
|
|
|
<mapstruct.version>1.5.5.Final</mapstruct.version>
|
|
<lombok-mapstruct-binding.version>0.2.0</lombok-mapstruct-binding.version>
|
|
|
|
<xxl-job.version>2.4.2</xxl-job.version>
|
|
|
|
<easyexcel.version>3.2.1</easyexcel.version>
|
|
|
|
<!-- 对象存储 -->
|
|
<minio.version>8.5.10</minio.version>
|
|
<okhttp3.version>4.8.1</okhttp3.version>
|
|
|
|
<aliyun-sdk-oss.version>3.16.3</aliyun-sdk-oss.version>
|
|
|
|
<!-- redisson 分布式锁 -->
|
|
<redisson.version>3.30.0</redisson.version>
|
|
|
|
<!-- 自动代码生成 -->
|
|
<mybatis-plus-generator.version>3.5.6</mybatis-plus-generator.version>
|
|
<velocity.version>2.3</velocity.version>
|
|
|
|
<!-- IP 地区转换 -->
|
|
<ip2region.version>2.7.0</ip2region.version>
|
|
|
|
<!-- 阿里云短信 -->
|
|
<aliyun.java.sdk.core.version>4.6.4</aliyun.java.sdk.core.version>
|
|
<aliyun.java.sdk.dysmsapi.version>2.2.1</aliyun.java.sdk.dysmsapi.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<!--编译测试环境,不打包在lib-->
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-all</artifactId>
|
|
<version>${hutool.version}</version>
|
|
</dependency>
|
|
|
|
<!-- 允许使用Lombok的Java Bean类中使用MapStruct注解 (Lombok 1.18.20+) -->
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok-mapstruct-binding</artifactId>
|
|
<version>${lombok-mapstruct-binding.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-undertow</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-security</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-cache</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>${mysql.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|
<version>${druid.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.baomidou</groupId>
|
|
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
|
<version>${mybatis-plus.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
|
<version>${knife4j.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct</artifactId>
|
|
<version>${mapstruct.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
<version>${mapstruct.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.xuxueli</groupId>
|
|
<artifactId>xxl-job-core</artifactId>
|
|
<version>${xxl-job.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>easyexcel</artifactId>
|
|
<version>${easyexcel.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
</dependency>
|
|
|
|
<!-- MinIO 对象存储 -->
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>io.minio</groupId>-->
|
|
<!-- <artifactId>minio</artifactId>-->
|
|
<!-- <version>${minio.version}</version>-->
|
|
<!-- </dependency>-->
|
|
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>com.aliyun.oss</groupId>-->
|
|
<!-- <artifactId>aliyun-sdk-oss</artifactId>-->
|
|
<!-- <version>${aliyun-sdk-oss.version}</version>-->
|
|
<!-- </dependency>-->
|
|
|
|
<!-- redisson 分布式锁 -->
|
|
<dependency>
|
|
<groupId>org.redisson</groupId>
|
|
<artifactId>redisson-spring-boot-starter</artifactId>
|
|
<version>${redisson.version}</version>
|
|
</dependency>
|
|
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>org.springframework.boot</groupId>-->
|
|
<!-- <artifactId>spring-boot-starter-websocket</artifactId>-->
|
|
<!-- </dependency>-->
|
|
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>com.baomidou</groupId>-->
|
|
<!-- <artifactId>mybatis-plus-generator</artifactId>-->
|
|
<!-- <version>${mybatis-plus-generator.version}</version>-->
|
|
<!-- </dependency>-->
|
|
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>org.apache.velocity</groupId>-->
|
|
<!-- <artifactId>velocity-engine-core</artifactId>-->
|
|
<!-- <version>${velocity.version}</version>-->
|
|
<!-- </dependency>-->
|
|
|
|
<dependency>
|
|
<groupId>org.lionsoul</groupId>
|
|
<artifactId>ip2region</artifactId>
|
|
<version>${ip2region.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-mail</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.aliyun</groupId>
|
|
<artifactId>aliyun-java-sdk-core</artifactId>
|
|
<version>${aliyun.java.sdk.core.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.aliyun</groupId>
|
|
<artifactId>aliyun-java-sdk-dysmsapi</artifactId>
|
|
<version>${aliyun.java.sdk.dysmsapi.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.alipay.sdk</groupId>
|
|
<artifactId>alipay-sdk-java</artifactId>
|
|
<version>4.40.8.ALL</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.wechatpay-apiv3</groupId>
|
|
<artifactId>wechatpay-java</artifactId>
|
|
<version>0.2.15</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents.client5</groupId>
|
|
<artifactId>httpclient5</artifactId>
|
|
<version>5.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>dev</id>
|
|
<properties>
|
|
<!--自定义的属性-->
|
|
<spring.profiles.active>dev</spring.profiles.active>
|
|
</properties>
|
|
<activation>
|
|
<!--如果不指定,则默认使用dev开发环境配置-->
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<build>
|
|
<finalName>${project.artifactId}-${project.version}-dev</finalName>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>prod</id>
|
|
<properties>
|
|
<spring.profiles.active>prod</spring.profiles.active>
|
|
</properties>
|
|
<build>
|
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>test</id>
|
|
<properties>
|
|
<spring.profiles.active>test</spring.profiles.active>
|
|
</properties>
|
|
<build>
|
|
<finalName>${project.artifactId}-${project.version}-test</finalName>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<build>
|
|
<!-- <finalName>${project.artifactId}-${project.version}</finalName>-->
|
|
<plugins>
|
|
<!-- maven 打包时跳过测试 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<skip>false</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<configuration>
|
|
<layout>ZIP</layout>
|
|
<includes>
|
|
<include>
|
|
<groupId>nothing</groupId>
|
|
<artifactId>nothing</artifactId>
|
|
</include>
|
|
</includes>
|
|
<excludes>
|
|
<exclude>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |