|
|
|
@ -1,34 +1,30 @@ |
|
|
|
<?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"> |
|
|
|
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.5.6</version> |
|
|
|
<version>3.2.5</version> <!-- 改为 3.2.5,更稳定 --> |
|
|
|
<relativePath/> <!-- lookup parent from repository --> |
|
|
|
</parent> |
|
|
|
<groupId>com</groupId> |
|
|
|
|
|
|
|
<!-- 修复 groupId:使用完整的包名 --> |
|
|
|
<groupId>com.deepchart</groupId> |
|
|
|
<artifactId>deepchart</artifactId> |
|
|
|
<version>0.0.1-SNAPSHOT</version> |
|
|
|
<name>deepchart</name> |
|
|
|
<description>全球最懂机构行为的AI</description> |
|
|
|
<url/> |
|
|
|
<licenses> |
|
|
|
<license/> |
|
|
|
</licenses> |
|
|
|
<developers> |
|
|
|
<developer/> |
|
|
|
</developers> |
|
|
|
<scm> |
|
|
|
<connection/> |
|
|
|
<developerConnection/> |
|
|
|
<tag/> |
|
|
|
<url/> |
|
|
|
</scm> |
|
|
|
<packaging>jar</packaging> |
|
|
|
|
|
|
|
|
|
|
|
<properties> |
|
|
|
<java.version>17</java.version> |
|
|
|
<maven.compiler.source>17</maven.compiler.source> |
|
|
|
<maven.compiler.target>17</maven.compiler.target> |
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
|
|
</properties> |
|
|
|
|
|
|
|
<dependencies> |
|
|
|
<!-- Spring Boot Starters --> |
|
|
|
<dependency> |
|
|
|
@ -58,6 +54,13 @@ |
|
|
|
<scope>runtime</scope> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
<!-- H2 Database for testing --> |
|
|
|
<dependency> |
|
|
|
<groupId>com.h2database</groupId> |
|
|
|
<artifactId>h2</artifactId> |
|
|
|
<scope>test</scope> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
<!-- Lombok --> |
|
|
|
<dependency> |
|
|
|
<groupId>org.projectlombok</groupId> |
|
|
|
@ -71,11 +74,37 @@ |
|
|
|
<artifactId>spring-boot-starter-test</artifactId> |
|
|
|
<scope>test</scope> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
<!-- 修复 TestNG 依赖 --> |
|
|
|
<dependency> |
|
|
|
<groupId>org.testng</groupId> |
|
|
|
<artifactId>testng</artifactId> |
|
|
|
<version>RELEASE</version> |
|
|
|
<scope>compile</scope> |
|
|
|
<version>7.8.0</version> <!-- 使用具体版本,不要用 RELEASE --> |
|
|
|
<scope>test</scope> <!-- 改为 test scope --> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
<dependency> |
|
|
|
<groupId>com.alibaba</groupId> |
|
|
|
<artifactId>fastjson</artifactId> |
|
|
|
<version>2.0.43</version> <!-- 升级到 2.x 版本 --> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
<dependency> |
|
|
|
<groupId>org.apache.httpcomponents</groupId> |
|
|
|
<artifactId>httpclient</artifactId> |
|
|
|
<version>4.5.14</version> <!-- 升级到最新稳定版 --> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
<dependency> |
|
|
|
<groupId>cn.afterturn</groupId> |
|
|
|
<artifactId>easypoi-annotation</artifactId> |
|
|
|
<version>4.4.0</version> <!-- 升级到最新版 --> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
<dependency> |
|
|
|
<groupId>commons-io</groupId> |
|
|
|
<artifactId>commons-io</artifactId> |
|
|
|
<version>2.15.1</version> <!-- 升级到最新版 --> |
|
|
|
</dependency> |
|
|
|
</dependencies> |
|
|
|
|
|
|
|
@ -93,7 +122,32 @@ |
|
|
|
</excludes> |
|
|
|
</configuration> |
|
|
|
</plugin> |
|
|
|
|
|
|
|
<!-- 添加编译插件确保 Java 17 兼容 --> |
|
|
|
<plugin> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-compiler-plugin</artifactId> |
|
|
|
<version>3.12.1</version> |
|
|
|
<configuration> |
|
|
|
<source>17</source> |
|
|
|
<target>17</target> |
|
|
|
<annotationProcessorPaths> |
|
|
|
<path> |
|
|
|
<groupId>org.projectlombok</groupId> |
|
|
|
<artifactId>lombok</artifactId> |
|
|
|
<version>1.18.30</version> |
|
|
|
</path> |
|
|
|
</annotationProcessorPaths> |
|
|
|
</configuration> |
|
|
|
<executions> |
|
|
|
<execution> |
|
|
|
<id>repackage</id> |
|
|
|
<goals> |
|
|
|
<goal>repackage</goal> |
|
|
|
</goals> |
|
|
|
</execution> |
|
|
|
</executions> |
|
|
|
</plugin> |
|
|
|
</plugins> |
|
|
|
</build> |
|
|
|
|
|
|
|
</project> |