-
Notifications
You must be signed in to change notification settings - Fork 12
/
pom.xml
192 lines (176 loc) · 7.94 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!-- 从spring-boot-starter-parent继承版本号 -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<modelVersion>4.0.0</modelVersion>
<!-- 定义当前Maven项目隶属的实际项目 -->
<!-- 首先,Maven项目和实际项目不一定是一对一的关系,一个项目往往会被分为很多模块 -->
<!-- 其次,groupId不应该对应项目隶属的组织或公司,一个组织可能会有很多实际项目 -->
<groupId>com.wu.parker</groupId>
<!-- 定义实际项目中的一个Maven项目,推荐做法是使用实际项目名称作为artifactId的前缀 -->
<!-- 本项目将包含多个模块,因此作为总项目 -->
<artifactId>parker</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<finalName>parker</finalName>
</build>
<modules>
<module>parker-areadata</module>
<module>parker-common</module>
<module>parker-config</module>
<module>parker-easypoi</module>
<module>parker-mail</module>
<module>parker-feign</module>
<module>parker-file-upload</module>
<module>parker-jpa</module>
<module>parker-jpa-mybatis</module>
<module>parker-mybatis</module>
<module>parker-netty</module>
<module>parker-redis</module>
<module>parker-rest</module>
<module>parker-schedule</module>
<module>parker-shiro-base</module>
<module>parker-shiro-stateless</module>
<module>parker-sms</module>
<module>parker-solr</module>
<module>parker-websocket</module>
</modules>
<!-- 定义Maven项目的打包方式,默认为jar -->
<!-- 对于聚合模块来说,必须是pom,否则无法构建 -->
<packaging>pom</packaging>
<!-- 给项目提供一个更易阅读的名字 -->
<name>${project.artifactId}</name>
<description>spring boot demo</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<aliyun.sdk.core.version>4.4.1</aliyun.sdk.core.version>
<commons.beanutils.version>1.9.3</commons.beanutils.version>
<commons-lang3.version>3.7</commons-lang3.version>
<cloud.starter.version>2.0.0.RELEASE</cloud.starter.version>
<easypoi.version>3.3.0</easypoi.version>
<fastjson.version>1.2.46</fastjson.version>
<gson.version>2.8.5</gson.version>
<guava.version>20.0</guava.version>
<poi.ooxml.version>3.15</poi.ooxml.version>
<jackson.version>2.9.7</jackson.version>
<mybatis.starter.version>1.3.2</mybatis.starter.version>
<netty.version>4.1.34.Final</netty.version>
<postgresql.version>42.2.5</postgresql.version>
<shiro.starter.version>1.4.0</shiro.starter.version>
<solr.version>8.0.0</solr.version>
<spring.data.solr>4.0.6.RELEASE</spring.data.solr>
<swagger.version>2.7.0</swagger.version>
</properties>
<!-- 继承的依赖 -->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<!-- 依赖范围,默认为compile,此处为test,只对测试有效 -->
<scope>test</scope>
</dependency>
</dependencies>
<!-- dependencyManagement既能让子模块继承到父模块的依赖配置,又能保证子模块依赖使用的灵活性 -->
<!-- dependencyManagement下的依赖声明不会引入实际的依赖,不过它能约束dependencies下的依赖使用 -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${commons.beanutils.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-spring-boot-starter</artifactId>
<version>${easypoi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>${poi.ooxml.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis.starter.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring-boot-web-starter</artifactId>
<version>${shiro.starter.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>${swagger.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<version>${cloud.starter.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<version>${aliyun.sdk.core.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-solr</artifactId>
<version>${spring.data.solr}</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>