pom.xml
17.1 KB
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
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
<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>
<groupId>com.b2c.orders</groupId>
<artifactId>b2c-orders-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<jdk.version>1.7</jdk.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<spring.version>4.3.2.RELEASE</spring.version>
<aspectj.version>1.6.11</aspectj.version>
<jackson.version>1.9.2</jackson.version>
<slf4j.version>1.7.21</slf4j.version>
<logback.version>1.1.3</logback.version>
<titan.devlop.version>0.0.3-SNAPSHOT</titan.devlop.version>
<titan.product.version>0.0.3-SNAPSHOT</titan.product.version>
<orders.client.sdk.version>1.1.0-SNAPSHOT</orders.client.sdk.version>
<srvce.client.sdk.version>1.4-SNAPSHOT</srvce.client.sdk.version>
<user.client.devlop.version>0.0.1-SNAPSHOT</user.client.devlop.version>
<user.client.product.version>0.0.3-SNAPSHOT</user.client.product.version>
<fastjson.version>1.2.7</fastjson.version>
<mybatis.version>3.2.5</mybatis.version>
<guava.version>20.0</guava.version>
<pnr-shop-develop.version>0.0.1-SNAPSHOT</pnr-shop-develop.version>
<pnr-shop-product.version>0.0.1-SNAPSHOT</pnr-shop-product.version>
<lombox.version>1.16.10</lombox.version>
<orders.cache.main.key>1n4j_orders:data</orders.cache.main.key>
<!--订单获系统缓存开关 -->
<orders.cache.enabled>true</orders.cache.enabled>
<!--统一管理平台配置 -->
<conf.manage.enable>true</conf.manage.enable>
<conf.manage.spider>true</conf.manage.spider>
<conf.manage.system>orders</conf.manage.system>
<conf.manage.domain>http://manage.1n4j.com/</conf.manage.domain>
<!--系统url并未以.do结尾,因此需要使用如下方式的正则表达式 -->
<conf.manage.includes>^/.*</conf.manage.includes>
<!--打包编码 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<orders.contextPath>http://orders.1n4j.com</orders.contextPath>
<!--权限拦截器在处理导出文件时会出错,导致文件打不开,比如Excel,因此对于导出,跳过拦截 -->
<conf.manage.excludes>^/noAccess.do$,^/welcome.do$,^/loginControl/.*,^/api/.*,^/cleanCache$,^/assets/.*,^/orderSelf/export/.*,^/monitor,^/druid/*,^/orderPrint/export/*</conf.manage.excludes>
<!-- 域名信息 -->
<conf.domain.name>1n4j.com</conf.domain.name>
<!-- 静态资源地址 -->
<project.static.path>http://static.1n4j.com/static</project.static.path>
<!-- 订单请求和响应参数 -->
<orders.paramLog.enabled>true</orders.paramLog.enabled>
<mariadb-java-client.version>1.5.5</mariadb-java-client.version>
<aspectjweaver.version>1.7.2</aspectjweaver.version>
</properties>
<dependencyManagement>
<dependencies>
<!--swagger -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.2.2</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
</exclusion>
<exclusion>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.b2c.website</groupId>
<artifactId>diligrp-website-util</artifactId>
<version>0.0.2-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>velocity</groupId>
<artifactId>velocity-dep</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.yqyw</groupId>
<artifactId>orders-client</artifactId>
<version>${orders.client.sdk.version}</version>
</dependency>
<!-- 需求中心SDK -->
<dependency>
<groupId>com.diligrp</groupId>
<artifactId>srvce-client</artifactId>
<version>${srvce.client.sdk.version}</version>
</dependency>
<!-- 商品库 -->
<dependency>
<groupId>com.yqyw.titan</groupId>
<artifactId>titan-sdk</artifactId>
<version>${titan.devlop.version}</version>
</dependency>
<!-- 供应商 -->
<dependency>
<groupId>com.diligrp</groupId>
<artifactId>diligrp-crm-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<!-- 客户信息 -->
<!-- <dependency> <groupId>com.yqyw.website.user</groupId> <artifactId>diligrp-user-client</artifactId>
<version>${user.client.devlop.version}</version> </dependency> -->
<!-- 数据字典 -->
<dependency>
<groupId>com.b2c.website.web</groupId>
<artifactId>diligrp-website-api</artifactId>
<version>1.0.3-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--后台user -->
<dependency>
<groupId>com.yqyw.manage</groupId>
<artifactId>diligrp-manage-sdk</artifactId>
<version>0.0.3-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- 存储中心 -->
<dependency>
<groupId>com.diligrp.store</groupId>
<artifactId>diligrp-store-sdk</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<!-- 消息中心/待办事项 -->
<dependency>
<groupId>com.yqyw.messageCenter.sdk</groupId>
<artifactId>diligrp-messageCenter-sdk</artifactId>
<version>0.0.4-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>velocity</groupId>
<artifactId>velocity-dep</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- 店铺API -->
<dependency>
<groupId>com.yqyw.shop</groupId>
<artifactId>shop-sdk</artifactId>
<version>${pnr-shop-develop.version}</version>
</dependency>
<!-- spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-asm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>1.6.2.RELEASE</version>
</dependency>
<!-- LOG4J日志记录 -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.6</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${mybatis.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.14</version>
</dependency>
<!-- <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId>
<version>5.1.25</version> </dependency> -->
<!-- https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client -->
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>${mariadb-java-client.version}</version>
</dependency>
<!-- 工具类 -->
<!-- google sets,maps -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<!-- JSON -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectjweaver.version}</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.1_3</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
</dependency>
<!-- 单元测试 -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
<scope>test</scope>
</dependency>
<!-- if you enable @AspectJ style AOP in spring. -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
<!-- if you enable JSR303 (Bean Validation) in spring. -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.1.3.Final</version>
</dependency>
<!-- if you enable json support in spring mvc. -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- if you use fileupload in spring mvc -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.2</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.github.kevinsawicki</groupId>
<artifactId>http-request</artifactId>
<version>5.6</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.3</version>
</dependency>
<dependency>
<groupId>org.jboss.netty</groupId>
<artifactId>netty</artifactId>
<version>3.2.10.Final</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils-core</artifactId>
<version>1.8.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombox.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<!-- 开发环境 -->
<id>develop</id>
<!-- 默认 -->
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- 数据库 -->
<orders.jdbc.driver>org.mariadb.jdbc.Driver</orders.jdbc.driver>
<orders.jdbc.url>jdbc:mariadb://127.0.0.1:3306/b2c_orders?characterEncoding=UTF-8</orders.jdbc.url>
<orders.jdbc.username>root</orders.jdbc.username>
<orders.jdbc.password>123456</orders.jdbc.password>
<!-- 日志 -->
<orders.log.level>INFO</orders.log.level>
<orders.log.dtms.level>INFO</orders.log.dtms.level>
<!--redis -->
<project.redis.host1>10.28.10.208</project.redis.host1>
<project.redis.port1>6379</project.redis.port1>
<!--订单系统短信通知开关 -->
<orders.sms.enabled>true</orders.sms.enabled>
<!-- 存时间 以秒为单位 -->
<orders.cache.time>1800</orders.cache.time>
<orders.cache.redis.selectDB>1</orders.cache.redis.selectDB>
<!-- 店铺接口签名 -->
<orders.rpc.shopClient.sign>FzZGZxd2VycXdlYXNzZHZzdnp4Y3Z</orders.rpc.shopClient.sign>
<!-- 消息中心配置 -->
<mq.namesrvAddr>10.28.10.209:9876;10.28.10.149:9876</mq.namesrvAddr>
<mq.producerGroup>orders</mq.producerGroup>
</properties>
</profile>
</profiles>
<!-- 插件管理 -->
<build>
<pluginManagement>
<plugins>
<plugin>
<!-- war插件 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<!-- 配置构建时忽略测试用例 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/</path>
<port>80</port>
<uriEncoding>UTF-8</uriEncoding>
<server>order_dev_server</server>
<url>http://10.28.10.182/manager</url>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.26</version>
<configuration>
<scanIntervalSeconds>3</scanIntervalSeconds>
<contextPath></contextPath>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8080</port>
</connector>
</connectors>
</configuration>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.1</version>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<defaultGoal>compile</defaultGoal>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<modules>
<module>b2c-orders-domain</module>
<module>b2c-orders-commons</module>
<module>b2c-orders-manager</module>
<module>b2c-orders-client</module>
<module>b2c-orders-service</module>
<module>b2c-orders-web</module>
<module>b2c-orders-rpc</module>
<module>b2c-orders-dao</module>
</modules>
</project>