|
@@ -0,0 +1,244 @@
|
|
1
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3
|
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
4
|
+ <modelVersion>4.0.0</modelVersion>
|
|
5
|
+ <groupId>com.xuecheng</groupId>
|
|
6
|
+ <artifactId>xuecheng-plus-parent</artifactId>
|
|
7
|
+ <version>0.0.1-SNAPSHOT</version>
|
|
8
|
+ <name>xuecheng-plus-parent</name>
|
|
9
|
+ <description>xuecheng-plus-parent</description>
|
|
10
|
+ <packaging>pom</packaging>
|
|
11
|
+
|
|
12
|
+ <properties>
|
|
13
|
+ <java.version>1.8</java.version>
|
|
14
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
15
|
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
16
|
+ <spring-boot.version>2.3.7.RELEASE</spring-boot.version>
|
|
17
|
+ <spring-cloud.version>Hoxton.SR9</spring-cloud.version>
|
|
18
|
+ <org.mapstruct.version>1.3.1.Final</org.mapstruct.version>
|
|
19
|
+ <spring-cloud-alibaba.version>2.2.6.RELEASE</spring-cloud-alibaba.version>
|
|
20
|
+ <org.projectlombok.version>1.18.8</org.projectlombok.version>
|
|
21
|
+ <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
|
|
22
|
+ <fastjson.version>1.2.83</fastjson.version>
|
|
23
|
+ <druid-spring-boot-starter.version>1.2.8</druid-spring-boot-starter.version>
|
|
24
|
+ <mysql-connector-java.version>8.0.30</mysql-connector-java.version>
|
|
25
|
+ <mybatis-plus-boot-starter.version>3.4.1</mybatis-plus-boot-starter.version>
|
|
26
|
+ <commons-lang.version>2.6</commons-lang.version>
|
|
27
|
+ <minio.version>8.4.3</minio.version>
|
|
28
|
+ <xxl-job-core.version>2.3.1</xxl-job-core.version>
|
|
29
|
+ <swagger-annotations.version>1.5.20</swagger-annotations.version>
|
|
30
|
+ <commons-lang3.version>3.10</commons-lang3.version>
|
|
31
|
+ <okhttp.version>4.8.1</okhttp.version>
|
|
32
|
+ <swagger-spring-boot-starter.version>1.9.0.RELEASE</swagger-spring-boot-starter.version>
|
|
33
|
+ <elasticsearch.version>7.12.1</elasticsearch.version>
|
|
34
|
+ </properties>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+ <dependencyManagement>
|
|
38
|
+ <dependencies>
|
|
39
|
+
|
|
40
|
+ <dependency>
|
|
41
|
+ <groupId>org.springframework.cloud</groupId>
|
|
42
|
+ <artifactId>spring-cloud-dependencies</artifactId>
|
|
43
|
+ <version>${spring-cloud.version}</version>
|
|
44
|
+ <type>pom</type>
|
|
45
|
+ <scope>import</scope>
|
|
46
|
+ </dependency>
|
|
47
|
+ <dependency>
|
|
48
|
+ <groupId>org.springframework.boot</groupId>
|
|
49
|
+ <artifactId>spring-boot-dependencies</artifactId>
|
|
50
|
+ <version>${spring-boot.version}</version>
|
|
51
|
+ <type>pom</type>
|
|
52
|
+ <scope>import</scope>
|
|
53
|
+ </dependency>
|
|
54
|
+ <dependency>
|
|
55
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
56
|
+ <artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
|
57
|
+ <version>${spring-cloud-alibaba.version}</version>
|
|
58
|
+ <type>pom</type>
|
|
59
|
+ <scope>import</scope>
|
|
60
|
+ </dependency>
|
|
61
|
+ <!-- lombok,简化类的构建-->
|
|
62
|
+ <dependency>
|
|
63
|
+ <groupId>org.projectlombok</groupId>
|
|
64
|
+ <artifactId>lombok</artifactId>
|
|
65
|
+ <version>${org.projectlombok.version}</version>
|
|
66
|
+ </dependency>
|
|
67
|
+ <!-- mapstruct 代码生成器,简化java bean之间的映射 -->
|
|
68
|
+ <dependency>
|
|
69
|
+ <groupId>org.mapstruct</groupId>
|
|
70
|
+ <artifactId>mapstruct-jdk8</artifactId>
|
|
71
|
+ <version>${org.mapstruct.version}</version>
|
|
72
|
+ </dependency>
|
|
73
|
+ <dependency>
|
|
74
|
+ <groupId>org.mapstruct</groupId>
|
|
75
|
+ <artifactId>mapstruct-processor</artifactId>
|
|
76
|
+ <version>${org.mapstruct.version}</version>
|
|
77
|
+ </dependency>
|
|
78
|
+ <dependency>
|
|
79
|
+ <groupId>io.swagger</groupId>
|
|
80
|
+ <artifactId>swagger-annotations</artifactId>
|
|
81
|
+ <version>${swagger-annotations.version}</version>
|
|
82
|
+ </dependency>
|
|
83
|
+ <!-- Servlet 容器管理 -->
|
|
84
|
+ <dependency>
|
|
85
|
+ <groupId>javax.servlet</groupId>
|
|
86
|
+ <artifactId>javax.servlet-api</artifactId>
|
|
87
|
+ <version>${javax.servlet-api.version}</version>
|
|
88
|
+ <scope>provided</scope>
|
|
89
|
+ </dependency>
|
|
90
|
+ <!-- fastjson ,json解析工具 -->
|
|
91
|
+ <dependency>
|
|
92
|
+ <groupId>com.alibaba</groupId>
|
|
93
|
+ <artifactId>fastjson</artifactId>
|
|
94
|
+ <version>${fastjson.version}</version>
|
|
95
|
+ </dependency>
|
|
96
|
+ <!-- druid 连接池管理 -->
|
|
97
|
+ <dependency>
|
|
98
|
+ <groupId>com.alibaba</groupId>
|
|
99
|
+ <artifactId>druid-spring-boot-starter</artifactId>
|
|
100
|
+ <version>${druid-spring-boot-starter.version}</version>
|
|
101
|
+ </dependency>
|
|
102
|
+
|
|
103
|
+ <!-- mySQL数据库驱动包管理 -->
|
|
104
|
+ <dependency>
|
|
105
|
+ <groupId>mysql</groupId>
|
|
106
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
107
|
+ <version>${mysql-connector-java.version}</version>
|
|
108
|
+ </dependency>
|
|
109
|
+ <!-- mybatis plus 集成Spring Boot启动器 -->
|
|
110
|
+ <dependency>
|
|
111
|
+ <groupId>com.baomidou</groupId>
|
|
112
|
+ <artifactId>mybatis-plus-boot-starter</artifactId>
|
|
113
|
+ <version>${mybatis-plus-boot-starter.version}</version>
|
|
114
|
+ </dependency>
|
|
115
|
+
|
|
116
|
+ <!-- mybatis plus 代码生成器 -->
|
|
117
|
+ <dependency>
|
|
118
|
+ <groupId>com.baomidou</groupId>
|
|
119
|
+ <artifactId>mybatis-plus-generator</artifactId>
|
|
120
|
+ <version>${mybatis-plus-boot-starter.version}</version>
|
|
121
|
+ </dependency>
|
|
122
|
+
|
|
123
|
+ <!-- 工具类管理 -->
|
|
124
|
+ <dependency>
|
|
125
|
+ <groupId>commons-lang</groupId>
|
|
126
|
+ <artifactId>commons-lang</artifactId>
|
|
127
|
+ <version>${commons-lang.version}</version>
|
|
128
|
+ </dependency>
|
|
129
|
+ <!-- 分布式文件系统 minIO的客户端API包 -->
|
|
130
|
+ <dependency>
|
|
131
|
+ <groupId>io.minio</groupId>
|
|
132
|
+ <artifactId>minio</artifactId>
|
|
133
|
+ <version>${minio.version}</version>
|
|
134
|
+ </dependency>
|
|
135
|
+ <!--google推荐的一套工具类库-->
|
|
136
|
+ <dependency>
|
|
137
|
+ <groupId>com.google.guava</groupId>
|
|
138
|
+ <artifactId>guava</artifactId>
|
|
139
|
+ <version>25.0-jre</version>
|
|
140
|
+ </dependency>
|
|
141
|
+ <!--分布式任务调度-->
|
|
142
|
+ <dependency>
|
|
143
|
+ <groupId>com.xuxueli</groupId>
|
|
144
|
+ <artifactId>xxl-job-core</artifactId>
|
|
145
|
+ <version>${xxl-job-core.version}</version>
|
|
146
|
+ </dependency>
|
|
147
|
+ <!--Spring boot单元测试-->
|
|
148
|
+ <dependency>
|
|
149
|
+ <groupId>org.springframework.boot</groupId>
|
|
150
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
151
|
+ <version>${spring-boot.version}</version>
|
|
152
|
+ <scope>test</scope>
|
|
153
|
+ <exclusions>
|
|
154
|
+ <exclusion>
|
|
155
|
+ <groupId>org.junit.vintage</groupId>
|
|
156
|
+ <artifactId>junit-vintage-engine</artifactId>
|
|
157
|
+ </exclusion>
|
|
158
|
+ </exclusions>
|
|
159
|
+ </dependency>
|
|
160
|
+ <dependency>
|
|
161
|
+ <groupId>com.squareup.okhttp3</groupId>
|
|
162
|
+ <artifactId>okhttp</artifactId>
|
|
163
|
+ <version>${okhttp.version}</version>
|
|
164
|
+ </dependency>
|
|
165
|
+ <dependency>
|
|
166
|
+ <groupId>org.apache.commons</groupId>
|
|
167
|
+ <artifactId>commons-lang3</artifactId>
|
|
168
|
+ <version>${commons-lang3.version}</version>
|
|
169
|
+ </dependency>
|
|
170
|
+ <dependency>
|
|
171
|
+ <groupId>com.spring4all</groupId>
|
|
172
|
+ <artifactId>swagger-spring-boot-starter</artifactId>
|
|
173
|
+ <version>${swagger-spring-boot-starter.version}</version>
|
|
174
|
+ </dependency>
|
|
175
|
+ <dependency>
|
|
176
|
+ <groupId>org.elasticsearch.client</groupId>
|
|
177
|
+ <artifactId>elasticsearch-rest-high-level-client</artifactId>
|
|
178
|
+ <version>${elasticsearch.version}</version>
|
|
179
|
+ </dependency>
|
|
180
|
+
|
|
181
|
+ <dependency>
|
|
182
|
+ <groupId>org.elasticsearch</groupId>
|
|
183
|
+ <artifactId>elasticsearch</artifactId>
|
|
184
|
+ <version>${elasticsearch.version}</version>
|
|
185
|
+ </dependency>
|
|
186
|
+ </dependencies>
|
|
187
|
+
|
|
188
|
+ </dependencyManagement>
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+ <build>
|
|
192
|
+ <finalName>${project.name}</finalName>
|
|
193
|
+ <!--编译打包过虑配置-->
|
|
194
|
+ <resources>
|
|
195
|
+ <resource>
|
|
196
|
+ <directory>src/main/resources</directory>
|
|
197
|
+ <filtering>true</filtering>
|
|
198
|
+ <includes>
|
|
199
|
+ <include>**/*</include>
|
|
200
|
+ </includes>
|
|
201
|
+ </resource>
|
|
202
|
+ <resource>
|
|
203
|
+ <directory>src/main/java</directory>
|
|
204
|
+ <includes>
|
|
205
|
+ <include>**/*.xml</include>
|
|
206
|
+ </includes>
|
|
207
|
+ </resource>
|
|
208
|
+ </resources>
|
|
209
|
+ <plugins>
|
|
210
|
+ <plugin>
|
|
211
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
212
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
213
|
+ <version>3.8.1</version>
|
|
214
|
+ <configuration>
|
|
215
|
+ <!--指定项目源码jdk的版本-->
|
|
216
|
+ <source>1.8</source>
|
|
217
|
+ <!--指定项目编译后的jdk的版本-->
|
|
218
|
+ <target>1.8</target>
|
|
219
|
+ <!--配置注解预编译-->
|
|
220
|
+ <annotationProcessorPaths>
|
|
221
|
+ <path>
|
|
222
|
+ <groupId>org.projectlombok</groupId>
|
|
223
|
+ <artifactId>lombok</artifactId>
|
|
224
|
+ <version>${org.projectlombok.version}</version>
|
|
225
|
+ </path>
|
|
226
|
+ </annotationProcessorPaths>
|
|
227
|
+ </configuration>
|
|
228
|
+ </plugin>
|
|
229
|
+
|
|
230
|
+ <!--责处理项目资源文件并拷贝到输出目录,如果有额外的资源文件目录则需要配置-->
|
|
231
|
+ <plugin>
|
|
232
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
233
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
234
|
+ <version>3.3.0</version>
|
|
235
|
+ <configuration>
|
|
236
|
+ <encoding>utf-8</encoding>
|
|
237
|
+ <!--使用默认分隔符,resource中可以使用分割符定义过虑的路径-->
|
|
238
|
+ <useDefaultDelimiters>true</useDefaultDelimiters>
|
|
239
|
+ </configuration>
|
|
240
|
+ </plugin>
|
|
241
|
+ </plugins>
|
|
242
|
+ </build>
|
|
243
|
+
|
|
244
|
+</project>
|