pom.xml
5.61 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
<?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">
<parent>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-cloud</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>parking-server</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>
后端 Server 的主项目,通过引入需要 parking-module-xxx 的依赖,
从而实现提供 RESTful API 给 parking-cloud-ui(管理后台,含停车与政务域)以及 parking-cloud-screen(可视化大屏)。
本质上来说,它就是个空壳(容器)!最终发布物**只有一个 Jar**。
</description>
<dependencies>
<!-- 跨模块契约层(BizResult 兼容层等) -->
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-module-api</artifactId>
</dependency>
<!-- ========== 框架层:技术组件 ========== -->
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-spring-boot-starter-mybatis</artifactId>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-spring-boot-starter-redis</artifactId>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-spring-boot-starter-job</artifactId>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-spring-boot-starter-mq</artifactId>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-spring-boot-starter-excel</artifactId>
</dependency>
<!-- ========== 业务模块 ========== -->
<!-- 本文件是「模块进入唯一 Jar」的唯一入口:新增模块必须在这里加依赖,否则不生效 -->
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-module-system</artifactId>
</dependency>
<!-- 存量核心业务模块(P2 迁入)。park/order/pay/bill 之间有循环调用,
必须一起进 Jar,单独引其中一个都会因 Mapper/Service 缺失而启动失败。 -->
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-module-park</artifactId>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-module-order</artifactId>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-module-pay</artifactId>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-module-bill</artifactId>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-module-charge</artifactId>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-module-business</artifactId>
</dependency>
<!-- 设备采集(德飞地锁):P2 只有空实现,供 order 装配 DfGroundLockMsgPushService -->
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-module-datacollect</artifactId>
</dependency>
<!-- P1 起逐个打开:
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-module-infra</artifactId>
</dependency>
-->
<!-- spring boot 配置所需依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- 服务保障相关:健康检查等 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- 测试相关 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!-- 设置构建的 jar 包名 -->
<finalName>${project.artifactId}-${maven.build.timestamp}</finalName>
<plugins>
<!-- 打包:将引入的 jar 打入其中,产出唯一可执行 Jar -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring.boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>