blob: ef0fb95954b5c3013b7daec0b50bbfbeb2064612 [file] [log] [blame]
22301115cf6dba22025-03-25 19:06:21 +08001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
6
7 <groupId>groupId</groupId>
8 <artifactId>echo-backend</artifactId>
9 <version>1.0-SNAPSHOT</version>
10 <parent>
11 <groupId>org.springframework.boot</groupId>
12 <artifactId>spring-boot-starter-parent</artifactId>
13 <version>2.6.0</version> <!-- 使用你希望的Spring Boot版本 -->
14 <relativePath/> <!-- lookup parent from repository -->
15 </parent>
16
17 <properties>
18 <maven.compiler.source>17</maven.compiler.source>
19 <maven.compiler.target>17</maven.compiler.target>
20 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21 </properties>
22
23 <dependencies>
24 <!--引入hutool-->
25 <!-- Add Apache Commons IO -->
26 <dependency>
27 <groupId>com.baomidou</groupId>
28 <artifactId>mybatis-plus-boot-starter</artifactId>
29 <version>3.5.3.1</version>
30 </dependency>
31
32
33 <!-- Add Guava -->
34 <dependency>
35 <groupId>com.google.guava</groupId>
36 <artifactId>guava</artifactId>
37 <version>31.0.1-jre</version> <!-- Replace with the latest version -->
38 </dependency>
39 <dependency>
40 <groupId>io.springfox</groupId>
41 <artifactId>springfox-swagger2</artifactId>
42 <version>3.0.0</version> <!-- Replace with the latest version -->
43 </dependency>
44 <dependency>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-starter-data-redis</artifactId>
47 </dependency>
48
49 <dependency>
50 <groupId>io.springfox</groupId>
51 <artifactId>springfox-swagger-ui</artifactId>
52 <version>3.0.0</version> <!-- Replace with the latest version -->
53 </dependency>
54
55 <dependency>
56 <groupId>cn.hutool</groupId>
57 <artifactId>hutool-all</artifactId>
58 <version>5.3.9</version>
59 </dependency>
60 <!-- Spring Boot Starter Web -->
61 <dependency>
62 <groupId>org.springframework.boot</groupId>
63 <artifactId>spring-boot-starter-web</artifactId>
64 </dependency>
65 <!-- Spring Boot Starter Data JPA -->
66 <!-- MySQL Connector -->
67 <dependency>
68 <groupId>mysql</groupId>
69 <artifactId>mysql-connector-java</artifactId>
70 </dependency>
71 <!-- Spring Boot Starter Security -->
72 <dependency>
73 <groupId>org.springframework.boot</groupId>
74 <artifactId>spring-boot-starter-security</artifactId>
75 </dependency>
76 <!-- JAXB API -->
77 <dependency>
78 <groupId>javax.xml.bind</groupId>
79 <artifactId>jaxb-api</artifactId>
80 </dependency>
81 <!-- Spring Web MVC -->
82 <dependency>
83 <groupId>org.springframework</groupId>
84 <artifactId>spring-webmvc</artifactId>
85 </dependency>
86 <!-- Spring AOP -->
87 <dependency>
88 <groupId>org.springframework</groupId>
89 <artifactId>spring-aop</artifactId>
90 </dependency>
91 <dependency>
92 <groupId>org.springframework.boot</groupId>
93 <artifactId>spring-boot-starter-mail</artifactId>
94 </dependency>
95 <dependency>
96 <groupId>org.apache.commons</groupId>
97 <artifactId>commons-lang3</artifactId>
98 <version>3.12.0</version>
99 </dependency>
100 <dependency>
101 <groupId>com.alibaba</groupId>
102 <artifactId>fastjson</artifactId>
103 <version>1.2.39</version>
104 </dependency>
105 <dependency>
106 <groupId>org.projectlombok</groupId>
107 <artifactId>lombok</artifactId>
108 <version>1.18.30</version> <!-- 确保使用的是最新版本 -->
109 <scope>provided</scope>
110 </dependency>
111
112 <dependency>
113 <groupId>org.slf4j</groupId>
114 <artifactId>slf4j-api</artifactId>
115 <version>1.7.30</version> <!-- 版本可以根据需要调整 -->
116 </dependency>
117 <dependency>
118 <groupId>ch.qos.logback</groupId>
119 <artifactId>logback-classic</artifactId>
120 <version>1.2.3</version> <!-- 版本可以根据需要调整 -->
121 </dependency>
122 <dependency>
123 <groupId>commons-fileupload</groupId>
124 <artifactId>commons-fileupload</artifactId>
125 <version>1.4</version>
126 </dependency>
127
128 <dependency>
129 <groupId>org.springframework.boot</groupId>
130 <artifactId>spring-boot-starter-validation</artifactId>
131 </dependency>
132 <dependency>
133 <groupId>com.baidubce</groupId>
134 <artifactId>qianfan</artifactId>
135 <version>0.1.1</version>
136 </dependency>
137 <dependency>
138 <groupId>org.springframework.boot</groupId>
139 <artifactId>spring-boot-starter-webflux</artifactId>
140 </dependency>
141 <dependency>
142 <groupId>junit</groupId>
143 <artifactId>junit</artifactId>
144 <version>4.12</version>
145 <scope>test</scope>
146 </dependency>
147 <dependency>
148 <groupId>org.mockito</groupId>
149 <artifactId>mockito-core</artifactId>
150 <scope>test</scope>
151 </dependency>
152 <dependency>
153 <groupId>org.springframework.boot</groupId>
154 <artifactId>spring-boot-starter-test</artifactId>
155 <scope>test</scope>
156 </dependency>
157
2230113820360382025-05-06 17:40:59 +0800158 <dependency>
159 <groupId>jakarta.persistence</groupId>
160 <artifactId>jakarta.persistence-api</artifactId>
161 <version>3.1.0</version>
162 </dependency>
163
22301115cf6dba22025-03-25 19:06:21 +0800164 </dependencies>
165
166
167 <build>
168 <plugins>
169 <plugin>
170 <groupId>org.springframework.boot</groupId>
171 <artifactId>spring-boot-maven-plugin</artifactId>
172 </plugin>
173 <plugin>
174 <groupId>org.apache.maven.plugins</groupId>
175 <artifactId>maven-compiler-plugin</artifactId>
176 <version>3.8.1</version>
177 <configuration>
178 <source>17</source>
179 <target>17</target>
180 <compilerArgs>
181 <arg>--add-opens</arg>
182 <arg>jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
183 </compilerArgs>
184 </configuration>
185
186 </plugin>
187 <plugin>
188 <groupId>org.jacoco</groupId>
189 <artifactId>jacoco-maven-plugin</artifactId>
190 <version>0.8.8</version>
191 <executions>
192 <execution>
193 <goals>
194 <goal>prepare-agent</goal>
195 </goals>
196 </execution>
197 <execution>
198 <id>report</id>
199 <phase>test</phase>
200 <goals>
201 <goal>report</goal>
202 </goals>
203 </execution>
204 </executions>
205 </plugin>
206 <plugin>
207 <groupId>org.apache.maven.plugins</groupId>
208 <artifactId>maven-surefire-plugin</artifactId>
209 <version>2.9</version>
210 <configuration>
211 <!--suppress UnresolvedMavenProperty -->
212 <argLine>${surefireArgLine}</argLine>
213 <skipTests>false</skipTests>
214 <includes>
215 <include>**/*Test.java</include>
216 </includes>
217 </configuration>
218 </plugin>
219 <plugin>
220 <groupId>org.apache.maven.plugins</groupId>
221 <artifactId>maven-surefire-report-plugin</artifactId>
222 <version>2.12.2</version>
223 <configuration>
224 <showSuccess>false</showSuccess>
225 </configuration>
226
227 </plugin>
228
229 </plugins>
230 <resources>
231 <resource>
232 <directory>src/main/java</directory>
233 <includes>
234 <include>**/*.xml</include>
235 </includes>
236 </resource>
237 </resources>
238 </build>
239
240</project>