-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpom.xml
More file actions
246 lines (236 loc) · 10.5 KB
/
Copy pathpom.xml
File metadata and controls
246 lines (236 loc) · 10.5 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
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.deeprobotics.station.openapi</groupId>
<artifactId>station-openapi-devkit</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>DeepRobotics Station OpenAPI Devkit</name>
<description>Standalone Java SDK modules for DeepRobotics Smart Patrol RemoteApi OpenAPI integration.</description>
<url>https://www.deeprobotics.cn</url>
<!-- 模块顺序体现依赖方向:BOM/core/transport 先构建,聚合包、可选 MQ 和 shaded 包随后构建。 -->
<modules>
<module>station-openapi-sdk-bom</module>
<module>station-openapi-sdk-core</module>
<module>station-openapi-sdk-transport-okhttp</module>
<module>station-openapi-sdk</module>
<module>station-openapi-sdk-rocketmq</module>
<module>station-openapi-sdk-all</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.release>17</maven.compiler.release>
<jackson.version>2.18.9</jackson.version>
<junit.jupiter.version>5.10.3</junit.jupiter.version>
<assertj.version>3.26.3</assertj.version>
<slf4j.version>2.0.13</slf4j.version>
<okhttp.version>4.12.0</okhttp.version>
<okio.version>3.6.0</okio.version>
<rocketmq.client.version>5.5.0</rocketmq.client.version>
<netty.version>4.1.136.Final</netty.version>
<grpc.version>1.82.2</grpc.version>
<guava.version>33.5.0-jre</guava.version>
<maven.compiler.plugin.version>3.13.0</maven.compiler.plugin.version>
<maven.enforcer.plugin.version>3.5.0</maven.enforcer.plugin.version>
<maven.source.plugin.version>3.3.1</maven.source.plugin.version>
<maven.javadoc.plugin.version>3.8.0</maven.javadoc.plugin.version>
<maven.shade.plugin.version>3.6.0</maven.shade.plugin.version>
<maven.surefire.plugin.version>3.3.1</maven.surefire.plugin.version>
</properties>
<!-- 父 POM 只统一版本,不把这些库自动加入子模块;各模块仍按职责显式声明依赖。 -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.deeprobotics.station.openapi</groupId>
<artifactId>station-openapi-sdk-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.deeprobotics.station.openapi</groupId>
<artifactId>station-openapi-sdk-transport-okhttp</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.deeprobotics.station.openapi</groupId>
<artifactId>station-openapi-sdk</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.deeprobotics.station.openapi</groupId>
<artifactId>station-openapi-sdk-rocketmq</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.deeprobotics.station.openapi</groupId>
<artifactId>station-openapi-sdk-all</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>${jackson.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
<version>${netty.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-bom</artifactId>
<version>${grpc.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.jupiter.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>${okhttp.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
<version>${okhttp.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>${okio.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio-jvm</artifactId>
<version>${okio.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-client</artifactId>
<version>${rocketmq.client.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<!-- pluginManagement 统一插件版本;真正执行的插件仍由父级或具体模块显式声明。 -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<release>${maven.compiler.release}</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven.source.plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<configuration>
<release>${maven.compiler.release}</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- SDK 公开基线是 Java 17;尽早阻止误用本机默认 JDK 8 构建。 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven.enforcer.plugin.version}</version>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[17,)</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- 发布时附带源码和 Javadoc JAR;日常 verify 不重复生成这些较慢的附属产物。 -->
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>