2026-03-25 10:02:19 +08:00
|
|
|
|
<?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>4.0.3</version>
|
|
|
|
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
|
|
|
|
</parent>
|
|
|
|
|
|
<groupId>com.yfd</groupId>
|
|
|
|
|
|
<artifactId>platform</artifactId>
|
|
|
|
|
|
<version>1.0</version>
|
2026-03-31 11:32:10 +08:00
|
|
|
|
<packaging>pom</packaging>
|
2026-03-25 10:02:19 +08:00
|
|
|
|
<name>platform</name>
|
|
|
|
|
|
<description>springboot 项目基础框架4.0.3</description>
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<java.version>21</java.version>
|
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
|
<spring-boot.version>4.0.3</spring-boot.version>
|
|
|
|
|
|
<maven.compiler.source>21</maven.compiler.source>
|
|
|
|
|
|
<maven.compiler.target>21</maven.compiler.target>
|
|
|
|
|
|
<maven.compiler.release>21</maven.compiler.release>
|
|
|
|
|
|
<mybatis.version>3.5.16</mybatis.version>
|
|
|
|
|
|
<mybatis-plus.version>3.5.16</mybatis-plus.version>
|
|
|
|
|
|
<!-- dependency versions -->
|
|
|
|
|
|
<guava.version>30.0-jre</guava.version>
|
|
|
|
|
|
<mybatis.spring.boot.starter.version>4.0.1</mybatis.spring.boot.starter.version>
|
|
|
|
|
|
<druid.version>1.2.20</druid.version>
|
|
|
|
|
|
<druid.starter.version>1.2.20</druid.starter.version>
|
|
|
|
|
|
<sqlite-jdbc.version>3.32.3.2</sqlite-jdbc.version>
|
|
|
|
|
|
<hutool.version>5.8.8</hutool.version>
|
|
|
|
|
|
<poi.version>4.1.2</poi.version>
|
|
|
|
|
|
<poi.ooxml.version>4.1.2</poi.ooxml.version>
|
2026-04-01 08:51:44 +08:00
|
|
|
|
<fastjson.version>1.2.83</fastjson.version>
|
|
|
|
|
|
<fastjson2.version>2.0.53</fastjson2.version>
|
2026-03-25 10:02:19 +08:00
|
|
|
|
<springdoc.version>3.0.2</springdoc.version>
|
|
|
|
|
|
<freemarker.version>2.3.28</freemarker.version>
|
|
|
|
|
|
<jsoup.version>1.11.3</jsoup.version>
|
|
|
|
|
|
<jasypt.version>1.16</jasypt.version>
|
|
|
|
|
|
<ip2region.version>1.7.2</ip2region.version>
|
|
|
|
|
|
<easy.captcha.version>1.6.2</easy.captcha.version>
|
|
|
|
|
|
<useragentutils.version>1.21</useragentutils.version>
|
2026-04-01 08:51:44 +08:00
|
|
|
|
<redis.version>4.0.3</redis.version>
|
2026-03-25 10:02:19 +08:00
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 统一管理 MyBatis 相关版本,解决依赖收敛冲突 -->
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
|
<dependencies>
|
2026-03-31 11:32:10 +08:00
|
|
|
|
<!-- MyBatis 相关依赖 -->
|
2026-03-25 10:02:19 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
|
|
|
<artifactId>mybatis</artifactId>
|
|
|
|
|
|
<version>${mybatis.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
|
|
|
<artifactId>mybatis-spring</artifactId>
|
|
|
|
|
|
<version>3.0.3</version>
|
|
|
|
|
|
</dependency>
|
2026-03-31 11:32:10 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
|
|
<version>${mybatis.spring.boot.starter.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- MyBatis-Plus 相关依赖 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
|
|
|
<artifactId>mybatis-plus-spring-boot4-starter</artifactId>
|
|
|
|
|
|
<version>${mybatis-plus.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
|
|
|
<artifactId>mybatis-plus-jsqlparser</artifactId>
|
|
|
|
|
|
<version>${mybatis-plus.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
|
|
|
<artifactId>mybatis-plus-generator</artifactId>
|
|
|
|
|
|
<version>${mybatis-plus.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 数据库相关依赖 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
|
<artifactId>druid</artifactId>
|
|
|
|
|
|
<version>${druid.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.dameng</groupId>
|
|
|
|
|
|
<artifactId>DmJdbcDriver18</artifactId>
|
|
|
|
|
|
<version>8.1.2.79</version>
|
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.oracle.database.jdbc</groupId>
|
|
|
|
|
|
<artifactId>ojdbc8</artifactId>
|
|
|
|
|
|
<version>21.9.0.0</version>
|
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.oracle.database.nls</groupId>
|
|
|
|
|
|
<artifactId>orai18n</artifactId>
|
|
|
|
|
|
<version>21.9.0.0</version>
|
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.xerial</groupId>
|
|
|
|
|
|
<artifactId>sqlite-jdbc</artifactId>
|
|
|
|
|
|
<version>${sqlite-jdbc.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 工具类依赖 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
|
|
<version>${guava.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
2026-04-01 08:51:44 +08:00
|
|
|
|
<version>3.12.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>commons-codec</groupId>
|
|
|
|
|
|
<artifactId>commons-codec</artifactId>
|
|
|
|
|
|
<version>1.15</version>
|
2026-03-31 11:32:10 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
|
<version>1.18.42</version>
|
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
|
|
|
<artifactId>hutool-all</artifactId>
|
|
|
|
|
|
<version>${hutool.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.poi</groupId>
|
|
|
|
|
|
<artifactId>poi</artifactId>
|
|
|
|
|
|
<version>${poi.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.poi</groupId>
|
|
|
|
|
|
<artifactId>poi-ooxml</artifactId>
|
|
|
|
|
|
<version>${poi.ooxml.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
|
|
|
<version>${fastjson.version}</version>
|
|
|
|
|
|
</dependency>
|
2026-04-01 08:51:44 +08:00
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
|
|
|
|
<artifactId>fastjson2</artifactId><!-- 或更新的 2.x 版本 -->
|
|
|
|
|
|
<version>${fastjson2.version}</version>
|
|
|
|
|
|
</dependency>
|
2026-03-31 11:32:10 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.freemarker</groupId>
|
|
|
|
|
|
<artifactId>freemarker</artifactId>
|
|
|
|
|
|
<version>${freemarker.version}</version>
|
|
|
|
|
|
<scope>compile</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.jsoup</groupId>
|
|
|
|
|
|
<artifactId>jsoup</artifactId>
|
|
|
|
|
|
<version>${jsoup.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.github.ulisesbocchio</groupId>
|
|
|
|
|
|
<artifactId>jasypt-spring-boot-starter</artifactId>
|
|
|
|
|
|
<version>${jasypt.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.lionsoul</groupId>
|
|
|
|
|
|
<artifactId>ip2region</artifactId>
|
|
|
|
|
|
<version>${ip2region.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.github.whvcse</groupId>
|
|
|
|
|
|
<artifactId>easy-captcha</artifactId>
|
|
|
|
|
|
<version>${easy.captcha.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>eu.bitwalker</groupId>
|
|
|
|
|
|
<artifactId>UserAgentUtils</artifactId>
|
|
|
|
|
|
<version>${useragentutils.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.openjdk.nashorn</groupId>
|
|
|
|
|
|
<artifactId>nashorn-core</artifactId>
|
|
|
|
|
|
<version>15.4</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- SpringDoc 相关依赖 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springdoc</groupId>
|
|
|
|
|
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
|
|
|
|
|
<version>${springdoc.version}</version>
|
|
|
|
|
|
</dependency>
|
2026-04-01 08:51:44 +08:00
|
|
|
|
<!-- Spring Boot Redis -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
|
|
|
<version>${redis.version}</version>
|
|
|
|
|
|
</dependency>
|
2026-03-25 10:02:19 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
<dependencies>
|
2026-03-31 11:32:10 +08:00
|
|
|
|
<!-- 父模块仅声明依赖管理,具体依赖由子模块根据需要引入 -->
|
2026-03-25 10:02:19 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
2026-03-31 11:32:10 +08:00
|
|
|
|
<modules>
|
|
|
|
|
|
<module>platform-system</module>
|
|
|
|
|
|
<module>platform-common</module>
|
|
|
|
|
|
<module>qgc-env-server</module>
|
|
|
|
|
|
<module>qgc-eng-server</module>
|
|
|
|
|
|
</modules>
|
|
|
|
|
|
|
2026-03-25 10:02:19 +08:00
|
|
|
|
<build>
|
|
|
|
|
|
<resources>
|
|
|
|
|
|
<resource>
|
|
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
|
|
<includes>
|
|
|
|
|
|
<include>**/*.*</include>
|
|
|
|
|
|
</includes>
|
|
|
|
|
|
<filtering>false</filtering>
|
|
|
|
|
|
</resource>
|
|
|
|
|
|
<resource>
|
|
|
|
|
|
<directory>src/main/java</directory>
|
|
|
|
|
|
<includes>
|
|
|
|
|
|
<include>**/*.*</include>
|
|
|
|
|
|
</includes>
|
|
|
|
|
|
<excludes>
|
|
|
|
|
|
<exclude>**/*.java</exclude>
|
|
|
|
|
|
</excludes>
|
|
|
|
|
|
<filtering>false</filtering>
|
|
|
|
|
|
</resource>
|
|
|
|
|
|
|
|
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
|
<version>3.13.0</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<source>${java.version}</source>
|
|
|
|
|
|
<target>${java.version}</target>
|
|
|
|
|
|
<compilerArgs>
|
|
|
|
|
|
<arg>-parameters</arg>
|
|
|
|
|
|
</compilerArgs>
|
|
|
|
|
|
<annotationProcessorPaths>
|
|
|
|
|
|
<path>
|
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
|
<version>1.18.42</version> <!-- 匹配spring boot管理的版本 -->
|
|
|
|
|
|
</path>
|
|
|
|
|
|
</annotationProcessorPaths>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.asciidoctor</groupId>
|
|
|
|
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
|
|
|
|
<version>1.5.8</version>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>generate-docs</id>
|
|
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>process-asciidoc</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<skip>true</skip>
|
|
|
|
|
|
<backend>html</backend>
|
|
|
|
|
|
<doctype>book</doctype>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<!-- 统一设置 JVM 编码为 UTF-8,避免控制台中文乱码 -->
|
|
|
|
|
|
<jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
|
|
|
|
|
|
<!-- 以独立 JVM 运行,从而应用 jvmArguments -->
|
|
|
|
|
|
<!-- <fork>true</fork>-->
|
|
|
|
|
|
<excludes>
|
|
|
|
|
|
<exclude>
|
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
|
</exclude>
|
|
|
|
|
|
</excludes>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>repackage</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<!-- 固化构建规则:Maven Enforcer -->
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
|
|
<version>3.4.1</version>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>enforce-rules</id>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>enforce</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
<configuration>
|
2026-03-31 11:32:10 +08:00
|
|
|
|
<rules>
|
|
|
|
|
|
<!-- 推荐升级 Maven 到 3.8+;临时放宽版本以便构建 -->
|
|
|
|
|
|
<requireMavenVersion>
|
|
|
|
|
|
<version>[3.6.3,)</version>
|
|
|
|
|
|
</requireMavenVersion>
|
|
|
|
|
|
<requireJavaVersion>
|
|
|
|
|
|
<version>[21,)</version>
|
|
|
|
|
|
</requireJavaVersion>
|
|
|
|
|
|
<dependencyConvergence/>
|
|
|
|
|
|
<!-- 如需严格校验插件版本,可在升级 Maven 后再启用 -->
|
|
|
|
|
|
</rules>
|
|
|
|
|
|
</configuration>
|
2026-03-25 10:02:19 +08:00
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<!-- 额外生成 classes JAR,便于其他业务工程作为依赖引用 -->
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
|
<version>3.3.0</version>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>attach-jar</id>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>jar</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<classifier>plain</classifier>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|