blob: db6ed19b4645927e44b67a2482c90887a200a3ab [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
158 </dependencies>
159
160
161 <build>
162 <plugins>
163 <plugin>
164 <groupId>org.springframework.boot</groupId>
165 <artifactId>spring-boot-maven-plugin</artifactId>
166 </plugin>
167 <plugin>
168 <groupId>org.apache.maven.plugins</groupId>
169 <artifactId>maven-compiler-plugin</artifactId>
170 <version>3.8.1</version>
171 <configuration>
172 <source>17</source>
173 <target>17</target>
174 <compilerArgs>
175 <arg>--add-opens</arg>
176 <arg>jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
177 </compilerArgs>
178 </configuration>
179
180 </plugin>
181 <plugin>
182 <groupId>org.jacoco</groupId>
183 <artifactId>jacoco-maven-plugin</artifactId>
184 <version>0.8.8</version>
185 <executions>
186 <execution>
187 <goals>
188 <goal>prepare-agent</goal>
189 </goals>
190 </execution>
191 <execution>
192 <id>report</id>
193 <phase>test</phase>
194 <goals>
195 <goal>report</goal>
196 </goals>
197 </execution>
198 </executions>
199 </plugin>
200 <plugin>
201 <groupId>org.apache.maven.plugins</groupId>
202 <artifactId>maven-surefire-plugin</artifactId>
203 <version>2.9</version>
204 <configuration>
205 <!--suppress UnresolvedMavenProperty -->
206 <argLine>${surefireArgLine}</argLine>
207 <skipTests>false</skipTests>
208 <includes>
209 <include>**/*Test.java</include>
210 </includes>
211 </configuration>
212 </plugin>
213 <plugin>
214 <groupId>org.apache.maven.plugins</groupId>
215 <artifactId>maven-surefire-report-plugin</artifactId>
216 <version>2.12.2</version>
217 <configuration>
218 <showSuccess>false</showSuccess>
219 </configuration>
220
221 </plugin>
222
223 </plugins>
224 <resources>
225 <resource>
226 <directory>src/main/java</directory>
227 <includes>
228 <include>**/*.xml</include>
229 </includes>
230 </resource>
231 </resources>
232 </build>
233
234</project>