258 lines
9.7 KiB
XML
258 lines
9.7 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>2.4.5</version>
|
|||
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|||
|
|
</parent>
|
|||
|
|
<groupId>com.cbsd</groupId>
|
|||
|
|
<artifactId>universaltestsoftwareserver_api</artifactId>
|
|||
|
|
<version>0.0.1-SNAPSHOT</version>
|
|||
|
|
<name>universaltestsoftwareserver_api</name>
|
|||
|
|
<description>universaltestsoftwareserver_api</description>
|
|||
|
|
<url/>
|
|||
|
|
<licenses>
|
|||
|
|
<license/>
|
|||
|
|
</licenses>
|
|||
|
|
<developers>
|
|||
|
|
<developer/>
|
|||
|
|
</developers>
|
|||
|
|
<scm>
|
|||
|
|
<connection/>
|
|||
|
|
<developerConnection/>
|
|||
|
|
<tag/>
|
|||
|
|
<url/>
|
|||
|
|
</scm>
|
|||
|
|
<properties>
|
|||
|
|
<java.version>1.8</java.version>
|
|||
|
|
<!-- 显式指定 Spring Integration 版本(与 Spring Boot 2.4.5 兼容) -->
|
|||
|
|
<!-- <spring-integration.version>5.4.6</spring-integration.version> -->
|
|||
|
|
</properties>
|
|||
|
|
<dependencies>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|||
|
|
<exclusions>
|
|||
|
|
<exclusion>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-starter-logging</artifactId>
|
|||
|
|
</exclusion>
|
|||
|
|
</exclusions>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-starter-log4j2</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.flywaydb</groupId>
|
|||
|
|
<artifactId>flyway-core</artifactId>
|
|||
|
|
<version>5.2.1</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- Jackson Annotations -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|||
|
|
<artifactId>jackson-annotations</artifactId>
|
|||
|
|
<version>2.17.1</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<!-- Jackson YAML 数据格式支持 (对应 YAMLMapper) -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|||
|
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
|||
|
|
<version>2.17.1</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- Jackson Java Properties 数据格式支持 (对应 JavaPropsMapper) -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|||
|
|
<artifactId>jackson-dataformat-properties</artifactId>
|
|||
|
|
<version>2.17.1</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>commons-io</groupId>
|
|||
|
|
<artifactId>commons-io</artifactId>
|
|||
|
|
<version>2.5</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.alibaba</groupId>
|
|||
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|||
|
|
<version>1.2.16</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>io.reactivex.rxjava3</groupId>
|
|||
|
|
<artifactId>rxjava</artifactId>
|
|||
|
|
<version>3.1.6</version> <!-- 确保版本与 jaxb-core 兼容 -->
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|||
|
|
<scope>test</scope>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>mysql</groupId>
|
|||
|
|
<artifactId>mysql-connector-java</artifactId>
|
|||
|
|
<version>5.1.49</version>
|
|||
|
|
<scope>runtime</scope>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.baomidou</groupId>
|
|||
|
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
|||
|
|
<version>3.5.2</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.baomidou</groupId>
|
|||
|
|
<artifactId>mybatis-plus-generator</artifactId>
|
|||
|
|
<version>3.5.3.1</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.freemarker</groupId>
|
|||
|
|
<artifactId>freemarker</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>io.springfox</groupId>
|
|||
|
|
<artifactId>springfox-swagger2</artifactId>
|
|||
|
|
<version>3.0.0</version>
|
|||
|
|
</dependency>
|
|||
|
|
<!-- 官方UI包 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>io.springfox</groupId>
|
|||
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
|||
|
|
<version>3.0.0</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>io.springfox</groupId>
|
|||
|
|
<artifactId>springfox-boot-starter</artifactId>
|
|||
|
|
<version>3.0.0</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.alibaba</groupId>
|
|||
|
|
<artifactId>fastjson</artifactId>
|
|||
|
|
<version>1.2.62</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.sun.xml.bind</groupId>
|
|||
|
|
<artifactId>jaxb-core</artifactId>
|
|||
|
|
<version>2.3.0</version> <!-- 根据需要选择合适版本 -->
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>javax.xml.bind</groupId>
|
|||
|
|
<artifactId>jaxb-api</artifactId>
|
|||
|
|
<version>2.3.1</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.sun.xml.bind</groupId>
|
|||
|
|
<artifactId>jaxb-impl</artifactId>
|
|||
|
|
<version>2.3.1</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.sun.istack</groupId>
|
|||
|
|
<artifactId>istack-commons-runtime</artifactId>
|
|||
|
|
<version>3.0.11</version> <!-- 确保版本与 jaxb-core 兼容 -->
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.projectlombok</groupId>
|
|||
|
|
<artifactId>lombok</artifactId>
|
|||
|
|
<optional>true</optional>
|
|||
|
|
</dependency>
|
|||
|
|
<!-- JNA 依赖:核心用于调用 DLL -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>net.java.dev.jna</groupId>
|
|||
|
|
<artifactId>jna</artifactId>
|
|||
|
|
<version>5.14.0</version> <!-- 推荐使用最新稳定版 -->
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.fazecast</groupId>
|
|||
|
|
<artifactId>jSerialComm</artifactId>
|
|||
|
|
<version>2.9.2</version>
|
|||
|
|
</dependency>
|
|||
|
|
<!-- Netty -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>io.netty</groupId>
|
|||
|
|
<artifactId>netty-all</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.apache.commons</groupId>
|
|||
|
|
<artifactId>commons-lang3</artifactId>
|
|||
|
|
<version>3.12.0</version> <!-- 可以使用当前最新版本 -->
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|||
|
|
<artifactId>jackson-core</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|||
|
|
<artifactId>jackson-databind</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
</dependencies>
|
|||
|
|
|
|||
|
|
<build>
|
|||
|
|
<plugins>
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|||
|
|
</plugin>
|
|||
|
|
<!-- 配置资源复制插件 -->
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|||
|
|
<version>3.3.0</version>
|
|||
|
|
<executions>
|
|||
|
|
<execution>
|
|||
|
|
<!-- 在package阶段执行复制操作 -->
|
|||
|
|
<phase>package</phase>
|
|||
|
|
<goals>
|
|||
|
|
<goal>copy-resources</goal>
|
|||
|
|
</goals>
|
|||
|
|
<configuration>
|
|||
|
|
<!-- 目标目录:项目的target目录 -->
|
|||
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|||
|
|
<!-- 配置源文件目录(与pom.xml同级的目录) -->
|
|||
|
|
<resources>
|
|||
|
|
<resource>
|
|||
|
|
<!-- 源目录路径(.表示与pom.xml同级) -->
|
|||
|
|
<directory>.</directory>
|
|||
|
|
<!-- 包含的文件模式(根据需要修改) -->
|
|||
|
|
<includes>
|
|||
|
|
<!-- 示例:复制所有.properties文件 -->
|
|||
|
|
<include>*.rbf</include>
|
|||
|
|
<!-- 示例:复制所有.txt文件 -->
|
|||
|
|
<include>*.bin</include>
|
|||
|
|
</includes>
|
|||
|
|
<!-- 排除的文件模式(可选) -->
|
|||
|
|
<excludes>
|
|||
|
|
<!-- 示例:排除.gitignore文件 -->
|
|||
|
|
<exclude>.gitignore</exclude>
|
|||
|
|
<!-- 示例:排除src目录(如果需要) -->
|
|||
|
|
<exclude>src/**/*</exclude>
|
|||
|
|
</excludes>
|
|||
|
|
<!-- 是否过滤资源文件(替换变量),这里设置为false -->
|
|||
|
|
<filtering>false</filtering>
|
|||
|
|
</resource>
|
|||
|
|
</resources>
|
|||
|
|
</configuration>
|
|||
|
|
</execution>
|
|||
|
|
</executions>
|
|||
|
|
</plugin>
|
|||
|
|
</plugins>
|
|||
|
|
</build>
|
|||
|
|
|
|||
|
|
</project>
|