-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
265 lines (234 loc) · 9.39 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
</parent>
<groupId>microavatar.framework</groupId>
<artifactId>parent</artifactId>
<version>1.0.0</version>
<name>parent</name>
<packaging>pom</packaging>
<modules>
<!-- 基础组件,供上层服务依赖 -->
<module>common-protobuf</module>
<!-- 核心组件,供上层服务依赖 -->
<module>core</module>
<module>core-net-tcp</module>
<module>core-cache</module>
<module>core-mvc</module>
<module>core-database</module>
<module>core-database-listener</module>
<module>core-mq</module>
<!-- 应用组件 -->
<module>perm-api</module>
<!-- 基础服务,端口80xx -->
<module>server-base-eureka</module><!-- 8001 -->
<module>server-base-config</module><!-- 8011 -->
<!-- 应用服务,端口81xx -->
<module>tcp-gateway</module><!-- 8131 8132 -->
<module>tcp-test</module>
<module>im</module><!-- 8101 8102-->
<module>order</module><!-- 8111-->
<module>goods</module><!-- 8121-->
<module>perm</module><!-- 8131 8132-->
</modules>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<hutool.version>4.0.9</hutool.version>
<rocketmq.version>4.1.0-incubating</rocketmq.version>
</properties>
<dependencyManagement>
<dependencies>
<!-- microavatar.framework 系列 -->
<dependency>
<groupId>microavatar.framework</groupId>
<artifactId>common-protobuf</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>microavatar.framework</groupId>
<artifactId>core</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>microavatar.framework</groupId>
<artifactId>core-net-tcp</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>microavatar.framework</groupId>
<artifactId>core-database</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>microavatar.framework</groupId>
<artifactId>core-mvc</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>microavatar.framework</groupId>
<artifactId>core-database-listener</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>microavatar.framework</groupId>
<artifactId>core-mq</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>microavatar.framework</groupId>
<artifactId>perm-api</artifactId>
<version>1.0.0</version>
</dependency>
<!-- spring cloud 指定spring cloud 的版本,让子项目引用 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Dalston.SR3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- rocketmq -->
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-client</artifactId>
<version>${rocketmq.version}</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-common</artifactId>
<version>${rocketmq.version}</version>
</dependency>
<!-- 数据库 -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.31</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>5.1.2</version>
</dependency>
<!-- json -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.36</version>
</dependency>
<!-- protobuf -->
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.6.1</version>
<!--<version>2.4.1</version>-->
</dependency>
<!-- protobuf与json转换-->
<dependency>
<groupId>com.googlecode.protobuf-java-format</groupId>
<artifactId>protobuf-java-format</artifactId>
<version>1.2</version>
</dependency>
<!-- netty -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.15.Final</version>
</dependency>
<!-- 工具类 -->
<!--<dependency>-->
<!--<groupId>org.apache.commons</groupId>-->
<!--<artifactId>commons-lang3</artifactId>-->
<!--<version>3.5</version>-->
<!--</dependency>-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-core</artifactId>
<version>${hutool.version}</version>
</dependency>
<!-- alibaba canal-->
<dependency>
<groupId>com.alibaba.otter</groupId>
<artifactId>canal.client</artifactId>
<version>1.0.25</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!--
绝大部分的服务都需要依赖的jar包,可以配置这里,达到全局通用的效果
工具类、数据库连接等jar,不应该放到这里,因为有些服务不需要,例如服务注册与发现中心。
如果把这些不需要的jar也放到这里,则在服务打包时,会把这些不需要的jar也打包了,造成服务的jar包臃肿。
-->
<!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-devtools</artifactId>-->
<!--<optional>true</optional>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-dependencies</artifactId>-->
<!--<version>1.5.6.RELEASE</version>-->
<!--<type>pom</type>-->
<!--<scope>import</scope>-->
<!--</dependency>-->
<!-- 日志 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>
<version>3.3.6</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>1.16.18.1</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>delombok</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<proc>none</proc>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>