288 lines
12 KiB
XML
288 lines
12 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>3.1.4</version>
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
</parent>
|
|
|
|
<groupId>com.besscroft.diyfile</groupId>
|
|
<artifactId>diyfile</artifactId>
|
|
<version>${revision}</version>
|
|
<name>diyfile</name>
|
|
<description>diyfile</description>
|
|
<packaging>pom</packaging>
|
|
|
|
<properties>
|
|
<revision>0.8.3</revision>
|
|
<java.version>17</java.version>
|
|
<maven.compiler.release>17</maven.compiler.release>
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<spring-boot.version>3.1.4</spring-boot.version>
|
|
<mapstruct.version>1.5.5.Final</mapstruct.version>
|
|
<lombok-mapstruct-binding.version>0.2.0</lombok-mapstruct-binding.version>
|
|
<mybatis-plus.version>3.5.3.2</mybatis-plus.version>
|
|
<springdoc.version>2.2.0</springdoc.version>
|
|
<sa-token.version>1.36.0</sa-token.version>
|
|
<hutool-all.version>5.8.20</hutool-all.version>
|
|
<pagehelper.version>1.4.7</pagehelper.version>
|
|
<oshi.version>6.4.4</oshi.version>
|
|
<okhttps.version>3.5.3</okhttps.version>
|
|
<caffeine.version>3.1.8</caffeine.version>
|
|
<aliyun-sdk-oss.version>3.17.1</aliyun-sdk-oss.version>
|
|
<jaxb-api.version>2.3.1</jaxb-api.version>
|
|
<activation.version>1.1.1</activation.version>
|
|
<jaxb-runtime.version>2.3.3</jaxb-runtime.version>
|
|
<software.amazon.awssdk.version>2.20.20</software.amazon.awssdk.version>
|
|
<cos_api.version>5.6.163</cos_api.version>
|
|
</properties>
|
|
|
|
<modules>
|
|
<module>diyfile-system</module>
|
|
<module>diyfile-common</module>
|
|
<module>diyfile-doc</module>
|
|
</modules>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-registry-prometheus</artifactId>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<!-- spring boot 依赖 -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
<version>${spring-boot.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<!-- mapstruct -->
|
|
<dependency>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct</artifactId>
|
|
<version>${mapstruct.version}</version>
|
|
</dependency>
|
|
<!-- mybatis-plus -->
|
|
<dependency>
|
|
<groupId>com.baomidou</groupId>
|
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
|
<version>${mybatis-plus.version}</version>
|
|
</dependency>
|
|
<!-- SpringDoc 支持 -->
|
|
<dependency>
|
|
<groupId>org.springdoc</groupId>
|
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
|
<version>${springdoc.version}</version>
|
|
</dependency>
|
|
<!-- Sa-Token 权限认证 -->
|
|
<dependency>
|
|
<groupId>cn.dev33</groupId>
|
|
<artifactId>sa-token-spring-boot3-starter</artifactId>
|
|
<version>${sa-token.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-all</artifactId>
|
|
<version>${hutool-all.version}</version>
|
|
</dependency>
|
|
<!-- 分页插件 -->
|
|
<dependency>
|
|
<groupId>com.github.pagehelper</groupId>
|
|
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
|
<version>${pagehelper.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.oshi</groupId>
|
|
<artifactId>oshi-core</artifactId>
|
|
<version>${oshi.version}</version>
|
|
</dependency>
|
|
<!-- http 请求 -->
|
|
<dependency>
|
|
<groupId>com.ejlchina</groupId>
|
|
<artifactId>okhttps-jackson</artifactId>
|
|
<version>${okhttps.version}</version>
|
|
</dependency>
|
|
<!-- 缓存 -->
|
|
<dependency>
|
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
|
<artifactId>caffeine</artifactId>
|
|
<version>${caffeine.version}</version>
|
|
</dependency>
|
|
<!-- 阿里云 OSS -->
|
|
<dependency>
|
|
<groupId>com.aliyun.oss</groupId>
|
|
<artifactId>aliyun-sdk-oss</artifactId>
|
|
<version>${aliyun-sdk-oss.version}</version>
|
|
</dependency>
|
|
<!-- 阿里云 OSS SDK 如果使用的是 Java 9 及以上的版本,则需要添加 jaxb 相关依赖。 -->
|
|
<dependency>
|
|
<groupId>javax.xml.bind</groupId>
|
|
<artifactId>jaxb-api</artifactId>
|
|
<version>${jaxb-api.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.activation</groupId>
|
|
<artifactId>activation</artifactId>
|
|
<version>${activation.version}</version>
|
|
</dependency>
|
|
<!-- no more than 2.3.3-->
|
|
<dependency>
|
|
<groupId>org.glassfish.jaxb</groupId>
|
|
<artifactId>jaxb-runtime</artifactId>
|
|
<version>${jaxb-runtime.version}</version>
|
|
</dependency>
|
|
<!-- AWS SDK for Java 2.0 -->
|
|
<dependency>
|
|
<groupId>software.amazon.awssdk</groupId>
|
|
<artifactId>bom</artifactId>
|
|
<version>${software.amazon.awssdk.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<!-- 腾讯云 COS -->
|
|
<dependency>
|
|
<groupId>com.qcloud</groupId>
|
|
<artifactId>cos_api</artifactId>
|
|
<version>${cos_api.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<!-- 环境标识配置,注意需要与配置文件的名称相对应 -->
|
|
<profiles>
|
|
<profile>
|
|
<!-- 开发环境 -->
|
|
<id>dev</id>
|
|
<properties>
|
|
<spring.active>dev</spring.active>
|
|
</properties>
|
|
<activation>
|
|
<!-- 默认启用 -->
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
</profile>
|
|
<profile>
|
|
<!-- mysql -->
|
|
<id>mysql</id>
|
|
<properties>
|
|
<spring.active>mysql</spring.active>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<!-- sqlite -->
|
|
<id>sqlite</id>
|
|
<properties>
|
|
<spring.active>sqlite</spring.active>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<build>
|
|
<finalName>${project.name}</finalName>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>${maven-compiler-plugin.version}</version>
|
|
<configuration>
|
|
<release>${java.version}</release>
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
|
<annotationProcessorPaths>
|
|
<!-- Lombok 在编译时会通过这个插件生成代码 -->
|
|
<path>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>${lombok.version}</version>
|
|
</path>
|
|
<!-- MapStruct 在编译时会通过这个插件生成代码 -->
|
|
<path>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
<version>${mapstruct.version}</version>
|
|
</path>
|
|
<!-- Lombok 1.18.16 及以上版本需要 -->
|
|
<!-- https://mapstruct.org/faq/#Can-I-use-MapStruct-together-with-Project-Lombok -->
|
|
<path>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok-mapstruct-binding</artifactId>
|
|
<version>${lombok-mapstruct-binding.version}</version>
|
|
</path>
|
|
</annotationProcessorPaths>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>${spring-boot.version}</version>
|
|
<configuration>
|
|
<finalName>${project.build.finalName}</finalName>
|
|
<layers>
|
|
<enabled>true</enabled>
|
|
</layers>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>repackage</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
|
|
<developers>
|
|
<developer>
|
|
<name>besscroft</name>
|
|
<email>besscroft@foxmail.com</email>
|
|
</developer>
|
|
</developers>
|
|
|
|
</project>
|