pom.xml
12 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
<?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>
<groupId>cn.iocoder.boot</groupId>
<artifactId>yudao</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<modules>
<module>yudao-dependencies</module>
<module>yudao-framework</module>
<!-- Server 主项目 -->
<module>yudao-server</module>
<!-- 各种 module 拓展 -->
<module>yudao-module-system</module>
<module>yudao-module-infra</module>
<!-- <module>yudao-module-member</module>-->
<!-- <module>yudao-module-bpm</module>-->
<!-- <module>yudao-module-report</module>-->
<!-- <module>yudao-module-mp</module>-->
<!-- <module>yudao-module-pay</module>-->
<!-- <module>yudao-module-mall</module>-->
<!-- <module>yudao-module-crm</module>-->
<!-- <module>yudao-module-erp</module>-->
<!-- IoT 物联网:本项目只用视频接入,取流走 WVP-PRO + ZLMediaKit,不经 IoT;
存量地磁/道闸沿用 tp_p_eqp,不迁 IoT。如需重新开启,取消本行与
yudao-server/pom.xml 中 yudao-module-iot-biz 依赖的注释。 -->
<!-- <module>yudao-module-iot</module>-->
<!-- <module>yudao-module-mes</module>-->
<!-- <module>yudao-module-wms</module>-->
<!-- <module>yudao-module-hrm</module>-->
<!-- <module>yudao-module-fms</module>-->
<!-- <module>yudao-module-pms</module>-->
<!-- <module>yudao-module-oa</module>-->
<!-- <module>yudao-module-im</module>-->
<!-- 请参考 https://doc.iocoder.cn/ai/build/ 文档,完成 AI 模块的启动!!! -->
<!-- <module>yudao-module-ai</module>-->
<!-- <module>yudao-module-ai1-springai</module>-->
<!-- parking 业务模块 -->
<module>parking-dependencies</module>
<module>parking-framework/parking-common</module>
<module>parking-framework/parking-legacy-common</module>
<module>parking-framework/parking-spring-boot-starter-mybatis</module>
<module>parking-framework/parking-spring-boot-starter-web</module>
<module>parking-framework/parking-spring-boot-starter-security</module>
<module>parking-framework/parking-spring-boot-starter-excel</module>
<module>parking-module-api</module>
<module>parking-module-park</module>
<module>parking-module-order</module>
<module>parking-module-pay</module>
<module>parking-module-bill</module>
<module>parking-module-charge</module>
<module>parking-module-business</module>
<module>parking-module-datacollect</module>
<module>parking-module-system-legacy</module>
<module>parking-module-video</module>
</modules>
<name>${project.artifactId}</name>
<description>芋道项目基础脚手架</description>
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
<properties>
<revision>2026.10-SNAPSHOT</revision>
<!-- Maven 相关 -->
<java.version>17</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
<flatten-maven-plugin.version>1.7.2</flatten-maven-plugin.version>
<!-- maven-surefire-plugin 暂时无法通过 bom 的依赖读取(兼容老版本 IDEA 2024 及以前版本) -->
<lombok.version>1.18.48</lombok.version>
<spring.boot.version>3.5.15</spring.boot.version>
<mapstruct.version>1.7.0.Beta2</mapstruct.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>cn.iocoder.boot</groupId>
<artifactId>yudao-dependencies</artifactId>
<version>${revision}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.zteits.boot</groupId>
<artifactId>parking-dependencies</artifactId>
<version>${revision}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- 硬约束:停车 httpclient 4.5.2 的类引用了 org.apache.http.annotation.ThreadSafe,
该注解只在 httpcore ≤ 4.4.4 中存在。yudao BOM 会把 httpcore 管到 4.4.16,
覆盖后 javac 读 httpclient 直接失败(连带 Lombok 不生效、198 个 log 报错)。
直接声明优先于 import 的 BOM,这里锁死 4.4.4。 -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.4</version>
</dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-common</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-legacy-common</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-module-api</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-spring-boot-starter-mybatis</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-spring-boot-starter-web</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-spring-boot-starter-security</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-spring-boot-starter-excel</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-module-park</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-module-order</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-module-pay</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-module-bill</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-module-charge</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-module-business</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-module-datacollect</artifactId><version>${revision}</version></dependency>
<dependency><groupId>com.zteits.boot</groupId><artifactId>parking-module-system-legacy</artifactId><version>${revision}</version></dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
<!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<!-- maven-compiler-plugin 插件,解决 spring-boot-configuration-processor + Lombok + MapStruct 组合 -->
<!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>${spring.boot.version}</version>
</path>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
<path>
<!-- 确保 Lombok 生成的 getter/setter 方法能被 MapStruct 正确识别,
避免出现 No property named “xxx" exists 的编译错误 -->
<groupId>org.projectlombok</groupId>
<artifactId>lombok-mapstruct-binding</artifactId>
<version>0.2.0</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${mapstruct.version}</version>
</path>
</annotationProcessorPaths>
<!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
<debug>false</debug>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- 统一 revision 版本 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<configuration>
<flattenMode>oss</flattenMode>
<updatePomFile>true</updatePomFile>
</configuration>
<executions>
<execution>
<goals>
<goal>flatten</goal>
</goals>
<id>flatten</id>
<phase>process-resources</phase>
</execution>
<execution>
<goals>
<goal>clean</goal>
</goals>
<id>flatten.clean</id>
<phase>clean</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 -->
<repositories>
<repository>
<id>huaweicloud</id>
<name>huawei</name>
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
</repository>
<repository>
<id>aliyunmaven</id>
<name>aliyun</name>
<url>https://maven.aliyun.com/repository/public</url>
</repository>
</repositories>
</project>