-
Notifications
You must be signed in to change notification settings - Fork 209
/
pom.xml
401 lines (365 loc) · 17 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
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
<?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>
<packaging>pom</packaging>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.22</version>
<name>ioGame</name>
<description>
生产资料公有制。
让网络游戏服务器的编程变得轻松简单。
ioGame 是一个轻量级的网络编程框架,适用于网络游戏服务器、物联网、内部系统及各种需要长连接的场景。
</description>
<url>http://game.iohao.com</url>
<modules>
<!-- 网络游戏框架 - 业务框架 -->
<module>common/common-micro-kit</module>
<module>common/common-kit</module>
<module>common/common-core</module>
<!--数据校验模块-->
<module>common/common-validation</module>
<!-- 网络游戏框架 - 网络通信 -->
<module>net-bolt/bolt-core</module>
<!-- 新版游戏对外服 -->
<module>external/external-core</module>
<module>external/external-netty</module>
<module>run-one/run-one-netty</module>
<!-- Broker (游戏网关) -->
<module>net-bolt/bolt-broker-server</module>
<!-- BrokerClient (逻辑服) -->
<module>net-bolt/bolt-client</module>
<!-- 小部件 : 领域事件 -->
<module>widget/light-domain-event</module>
<!-- 小部件 : 多环境切换 -->
<module>widget/light-profile</module>
<!-- 小部件 : jprotobuf 增强 -->
<module>widget/light-jprotobuf</module>
<!-- 小部件 : 压测&模拟客户端请求 -->
<module>widget/light-client</module>
<!-- 小部件 : 桌游类、房间类游戏的扩展模块,进一步减少开发实践过程中的工作量 -->
<module>widget/light-game-room</module>
<module>widget/other-tool</module>
<module>widget/generate-code</module>
</modules>
<!--统一管理版本 的一个父 pom-->
<properties>
<!-- jdk 版本 -->
<java.version>21</java.version>
<encoding>UTF-8</encoding>
<!-- 网络库 : https://mvnrepository.com/artifact/io.netty/netty-all -->
<netty.version>4.1.114.Final</netty.version>
<!-- bolt https://mvnrepository.com/artifact/com.alipay.sofa/bolt -->
<bolt.version>1.6.6</bolt.version>
<!-- hessian 格式化 https://mvnrepository.com/artifact/com.caucho/hessian -->
<hessian.version>4.0.66</hessian.version>
<!-- Jansi 控制台输出彩色文字 https://mvnrepository.com/artifact/org.fusesource.jansi/jansi -->
<jansi.version>2.4.1</jansi.version>
<!-- Java文档解析器 https://mvnrepository.com/artifact/com.thoughtworks.qdox/qdox -->
<qdox.version>2.1.0</qdox.version>
<!-- JCTools 是一款对jdk并发数据结构进行增强的并发工具 see http://jctools.github.io/JCTools/ https://mvnrepository.com/artifact/org.jctools/jctools-core -->
<jctools-core.version>4.0.5</jctools-core.version>
<!-- json 解析器 : https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2 -->
<fastjson.version>2.0.46</fastjson.version>
<!-- reflectasm 高性能的反射处理 https://mvnrepository.com/artifact/com.esotericsoftware/reflectasm -->
<reflectasm.version>1.11.9</reflectasm.version>
<!-- disruptor https://mvnrepository.com/artifact/com.lmax/disruptor -->
<disruptor.version>3.4.4</disruptor.version>
<!-- JSR-380 bean 验证框架 https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator -->
<hibernate-validator.version>8.0.1.Final</hibernate-validator.version>
<!-- JSR-380 https://mvnrepository.com/artifact/jakarta.validation/jakarta.validation-api -->
<jakarta.validation-api.version>3.1.0</jakarta.validation-api.version>
<!-- JSR-380 https://mvnrepository.com/artifact/org.glassfish/jakarta.el -->
<jakarta.el.version>4.0.2</jakarta.el.version>
<!-- temp spring boot https://mvnrepository.com/artifact/org.springframework/spring-core -->
<spring.version>6.1.12</spring.version>
<!-- slf4j https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
<slf4j-api.version>2.0.16</slf4j-api.version>
<!-- slf4j https://mvnrepository.com/artifact/ch.qos.logback/logback-classic -->
<logback.version>1.4.14</logback.version>
<!-- lombok 消除冗长的 Java 代码 https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<lombok.version>1.18.34</lombok.version>
<!-- junit https://mvnrepository.com/artifact/junit/junit -->
<junit.version>4.13.2</junit.version>
<!--
jprotobuf是针对Java程序开发一套简易类库,目的是简化java语言对protobuf类库的使用
https://github.com/jhunters/jprotobuf/
https://mvnrepository.com/artifact/com.baidu/jprotobuf
-->
<jprotobuf.version>2.4.23</jprotobuf.version>
<!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
<protobuf-java.version>3.25.5</protobuf-java.version>
</properties>
<dependencies>
<!-- lombok 简化 java 代码 -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<optional>true</optional>
</dependency>
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j-api.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-classic -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>provided</scope>
</dependency>
<!--
jprotobuf是针对Java程序开发一套简易类库,目的是简化java语言对protobuf类库的使用
https://github.com/jhunters/jprotobuf/
https://mvnrepository.com/artifact/com.baidu/jprotobuf
-->
<dependency>
<groupId>com.baidu</groupId>
<artifactId>jprotobuf</artifactId>
<version>${jprotobuf.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- jprotobuf dependency https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf-java.version}</version>
</dependency>
</dependencies>
<issueManagement>
<system>Github Issue</system>
<url>https://github.com/iohao/ioGame/issues</url>
</issueManagement>
<licenses>
<license>
<name>GNU Affero General Public License v3.0</name>
<url>https://www.gnu.org/licenses/agpl-3.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<name>渔民小镇</name>
<id>[email protected]</id>
<email>[email protected]</email>
</developer>
</developers>
<scm>
<url>https://github.com/iohao/ioGame</url>
<connection>https://github.com/iohao/ioGame.git</connection>
<developerConnection>https://github.com/iohao</developerConnection>
</scm>
<build>
<plugins>
<!--
mvnd javadoc:aggregate
Javadoc 本地生成,文档将生成在 target/site/apidocs 中
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<configuration>
<encoding>UTF-8</encoding>
<charset>UTF-8</charset>
<docencoding>UTF-8</docencoding>
<failOnError>false</failOnError>
<additionalOptions>-Xdoclint:none</additionalOptions>
<tags>
<tag>
<name>date</name>
<placement>a</placement>
<head>日期:</head>
</tag>
</tags>
</configuration>
</plugin>
<!--
编译插件
mvn compile
To compile your test sources, you'll do:
mvn test-compile
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<!-- <version>3.11.0</version>-->
<version>3.8.1</version>
<configuration>
<compilerVersion>${java.version}</compilerVersion>
<source>${java.version}</source>
<target>${java.version}</target>
<!-- maven 3.6.2及之后加上编译参数,可以让我们在运行期获取方法参数名称。 -->
<parameters>true</parameters>
<skip>true</skip>
<!-- JDK9+ with module-info.java -->
<annotationProcessorPaths>
<!-- lombok 消除冗长的 Java 代码 -->
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
<!-- additional annotation processor required as of Lombok 1.18.16 -->
<!-- mapStruct 支持 lombok -->
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-mapstruct-binding</artifactId>
<version>0.2.0</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<!-- 打包时跳过单元测试 https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<!-- 打包源码 https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<archive>
<index>true</index>
<manifest>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
</manifest>
<manifestSections>
<manifestSection>
<name>hope</name>
<manifestEntries>
<id>Public ownership of means of production</id>
</manifestEntries>
</manifestSection>
<manifestSection>
<name>zhu luo yi</name>
<manifestEntries>
<id>渔民小镇</id>
</manifestEntries>
</manifestSection>
</manifestSections>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!-- mvn clean deploy -P oss-release -Dmaven.test.skip=true -e -->
<profile>
<id>oss-release</id>
<build>
<plugins>
<!-- Gpg Signature -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 自动发布 -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>oss-ioGame</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<!-- false 手动关闭 release -->
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
<dependencies>
<!--
apparently this needs to be exactly this version
https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream
-->
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.15</version>
</dependency>
</dependencies>
</plugin>
<!-- Javadoc -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
<doclint>none</doclint>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<distributionManagement>
<repository>
<!-- 这里的id要与 maven setting.xml 中 server 的 id 一致 -->
<id>oss-ioGame</id>
<name>Nexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<uniqueVersion>true</uniqueVersion>
</repository>
</distributionManagement>
</project>