|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project xmlns="http://maven.apache.org/POM/4.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.1.0 http://maven.apache.org/xsd/maven-4.1.0.xsd"> |
3 | | - <modelVersion>4.1.0</modelVersion> |
| 2 | +<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"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
4 | 4 | <groupId>io.github.easy4j</groupId> |
5 | 5 | <artifactId>opencli-java-sdk</artifactId> |
6 | 6 | <name>${project.groupId}:${project.artifactId}</name> |
7 | 7 | <url>https://github.com/easy-4-java/${project.artifactId}</url> |
8 | | - <version>3.0.x.20260630-SNAPSHOT</version> |
| 8 | + <version>1.0.x.20260630-SNAPSHOT</version> |
9 | 9 | <packaging>jar</packaging> |
10 | | - <description>OpenCLI multi-adapter CLI integration SDK — 3.0.x line (JDK 21; for Boot 4.x starters)</description> |
| 10 | + <description>OpenCLI multi-adapter CLI integration SDK — 1.0.x line (JDK 8; for Boot 2.x starters)</description> |
| 11 | + |
11 | 12 | <!-- 开源协议采用 Apache 2.0 协议 --> |
12 | 13 | <licenses> |
13 | 14 | <license> |
14 | 15 | <name>The Apache Software License, Version 2.0</name> |
15 | | - <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 16 | + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
16 | 17 | </license> |
17 | 18 | </licenses> |
| 19 | + |
18 | 20 | <!-- 源码仓库(SCM)信息 --> |
19 | 21 | <scm> |
20 | 22 | <connection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</connection> |
21 | 23 | <developerConnection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</developerConnection> |
22 | 24 | <url>https://github.com/easy-4-java/${project.artifactId}</url> |
23 | 25 | <tag>${project.artifactId}</tag> |
24 | 26 | </scm> |
| 27 | + |
25 | 28 | <!-- 开发者信息 --> |
26 | 29 | <developers> |
27 | 30 | <developer> |
|
34 | 37 | <timezone>+8</timezone> |
35 | 38 | </developer> |
36 | 39 | </developers> |
| 40 | + |
37 | 41 | <properties> |
38 | 42 | <!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
39 | | - <java.version>21</java.version> |
| 43 | + <java.version>1.8</java.version> |
40 | 44 | <maven.compiler.release>${java.version}</maven.compiler.release> |
41 | | - <maven.version>4.0.0-rc-5</maven.version> |
| 45 | + <maven.version>3.9.16</maven.version> |
42 | 46 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 47 | + |
| 48 | + |
43 | 49 | <!-- Dependency versions --> |
44 | 50 | <commons-exec.version>1.6.0</commons-exec.version> |
45 | 51 | <commons-lang.version>2.6</commons-lang.version> |
46 | | - <jackson-bom.version>3.2.1</jackson-bom.version> |
| 52 | + <jackson-bom.version>2.18.9</jackson-bom.version> |
47 | 53 | <java-websocket.version>1.6.0</java-websocket.version> |
48 | | - <junit-jupiter.version>6.1.0</junit-jupiter.version> |
| 54 | + <junit-jupiter.version>5.11.4</junit-jupiter.version> |
49 | 55 | <junit.version>4.13.2</junit.version> |
50 | 56 | <lombok.version>1.18.46</lombok.version> |
51 | 57 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
|
68 | 74 | <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
69 | 75 | <maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> |
70 | 76 | </properties> |
| 77 | + |
71 | 78 | <dependencyManagement> |
72 | 79 | <dependencies> |
73 | 80 | <!-- For Jackson BOM --> |
74 | 81 | <dependency> |
75 | | - <groupId>tools.jackson</groupId> |
| 82 | + <groupId>com.fasterxml.jackson</groupId> |
76 | 83 | <artifactId>jackson-bom</artifactId> |
77 | 84 | <version>${jackson-bom.version}</version> |
78 | 85 | <type>pom</type> |
|
122 | 129 | </dependency> |
123 | 130 | </dependencies> |
124 | 131 | </dependencyManagement> |
| 132 | + |
125 | 133 | <dependencies> |
126 | 134 | <!-- For Jackson --> |
127 | 135 | <dependency> |
128 | | - <groupId>tools.jackson.core</groupId> |
| 136 | + <groupId>com.fasterxml.jackson.core</groupId> |
129 | 137 | <artifactId>jackson-databind</artifactId> |
130 | 138 | </dependency> |
131 | 139 | <!-- For Commons Exec --> |
|
161 | 169 | <scope>test</scope> |
162 | 170 | </dependency> |
163 | 171 | </dependencies> |
| 172 | + |
164 | 173 | <distributionManagement> |
165 | 174 | <repository> |
166 | 175 | <id>2624322-release-6F6h6R</id> |
|
171 | 180 | <url>https://packages.aliyun.com/6927b116e6c3e0425dbdf60d/maven/2624322-snapshot-3eoov3</url> |
172 | 181 | </snapshotRepository> |
173 | 182 | </distributionManagement> |
| 183 | + |
174 | 184 | <build> |
175 | 185 | <pluginManagement> |
176 | 186 | <plugins> |
| 187 | + |
177 | 188 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-clean-plugin --> |
178 | 189 | <plugin> |
179 | 190 | <!-- 清理插件:清理构建输出目录 --> |
180 | 191 | <groupId>org.apache.maven.plugins</groupId> |
181 | 192 | <artifactId>maven-clean-plugin</artifactId> |
182 | 193 | <version>${maven-clean-plugin.version}</version> |
183 | 194 | </plugin> |
| 195 | + |
184 | 196 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
185 | 197 | <plugin> |
186 | 198 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
201 | 213 | </annotationProcessorPaths> |
202 | 214 | </configuration> |
203 | 215 | </plugin> |
| 216 | + |
204 | 217 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
205 | 218 | <plugin> |
206 | 219 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
207 | 220 | <groupId>org.apache.maven.plugins</groupId> |
208 | 221 | <artifactId>maven-deploy-plugin</artifactId> |
209 | 222 | <version>${maven-deploy-plugin.version}</version> |
210 | 223 | </plugin> |
| 224 | + |
211 | 225 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
212 | 226 | <plugin> |
213 | 227 | <!-- 环境检查插件:代码编译前的环境监察 --> |
|
224 | 238 | <configuration> |
225 | 239 | <rules> |
226 | 240 | <requireMavenVersion> |
227 | | - <message><![CDATA[You are running an older version of Maven. This application requires at least Maven 4.]]></message> |
228 | | - <version>[4.0.0,)</version> |
| 241 | + <message>You are running an older version of Maven. This application requires at least Maven ${maven.version}.</message> |
| 242 | + <version>[${maven.version}.0,)</version> |
229 | 243 | </requireMavenVersion> |
230 | 244 | <requireJavaVersion> |
231 | 245 | <message>You are running an older version of Java. This application requires at least JDK ${java.version}.</message> |
|
236 | 250 | </execution> |
237 | 251 | </executions> |
238 | 252 | </plugin> |
| 253 | + |
239 | 254 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
240 | 255 | <plugin> |
241 | 256 | <!-- 签名插件:对制品进行 PGP 签名 --> |
|
252 | 267 | </execution> |
253 | 268 | </executions> |
254 | 269 | </plugin> |
| 270 | + |
255 | 271 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
256 | 272 | <plugin> |
257 | 273 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
258 | 274 | <groupId>org.apache.maven.plugins</groupId> |
259 | 275 | <artifactId>maven-install-plugin</artifactId> |
260 | 276 | <version>${maven-install-plugin.version}</version> |
261 | 277 | </plugin> |
| 278 | + |
262 | 279 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
263 | 280 | <plugin> |
264 | 281 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
|
269 | 286 | <encoding>${project.build.sourceEncoding}</encoding> |
270 | 287 | </configuration> |
271 | 288 | </plugin> |
| 289 | + |
272 | 290 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
273 | 291 | <plugin> |
274 | 292 | <!-- 发布管理插件:版本发布与标签管理 --> |
|
283 | 301 | <goals>deploy</goals> |
284 | 302 | </configuration> |
285 | 303 | </plugin> |
| 304 | + |
286 | 305 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
287 | 306 | <plugin> |
288 | 307 | <!-- 源码插件:发布时自动将源码同时发布 --> |
|
301 | 320 | </execution> |
302 | 321 | </executions> |
303 | 322 | </plugin> |
| 323 | + |
304 | 324 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
305 | 325 | <plugin> |
306 | 326 | <!-- 单元测试插件:执行测试用例 --> |
|
310 | 330 | <configuration> |
311 | 331 | <skip>false</skip> |
312 | 332 | <skipTests>false</skipTests> |
313 | | - <argLine>@{argLine} -Xmx1024m -Dfile.encoding=UTF-8</argLine> |
| 333 | + <argLine>-Xmx1024m -Dfile.encoding=UTF-8</argLine> |
314 | 334 | <additionalClasspathElements> |
315 | 335 | <additionalClasspathElement>${basedir}/target/test-classes</additionalClasspathElement> |
316 | 336 | </additionalClasspathElements> |
|
322 | 342 | </excludes> |
323 | 343 | </configuration> |
324 | 344 | </plugin> |
| 345 | + |
325 | 346 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
326 | 347 | <plugin> |
327 | 348 | <!-- jar 包生成插件:创建项目 jar 包 --> |
|
338 | 359 | </archive> |
339 | 360 | </configuration> |
340 | 361 | </plugin> |
| 362 | + |
341 | 363 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
342 | 364 | <plugin> |
343 | 365 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
|
360 | 382 | </execution> |
361 | 383 | </executions> |
362 | 384 | </plugin> |
| 385 | + |
363 | 386 | <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
364 | 387 | <plugin> |
365 | 388 | <!-- 发布插件:将制品发布到 Maven Central Portal --> |
|
376 | 399 | </plugins> |
377 | 400 | </pluginManagement> |
378 | 401 | <plugins> |
| 402 | + |
379 | 403 | <!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin --> |
380 | 404 | <plugin> |
381 | 405 | <!-- 覆盖率插件:生成覆盖率报告并校验测试覆盖率(目标 90%) --> |
|
420 | 444 | </execution> |
421 | 445 | </executions> |
422 | 446 | </plugin> |
| 447 | + |
423 | 448 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
424 | 449 | <plugin> |
425 | 450 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
442 | 467 | </plugin> |
443 | 468 | </plugins> |
444 | 469 | </build> |
| 470 | + |
445 | 471 | <profiles> |
446 | 472 | <profile> |
447 | 473 | <id>disable-javadoc-doclint</id> |
448 | 474 | <activation> |
449 | 475 | <jdk>[1.8,)</jdk> |
450 | 476 | </activation> |
451 | | - <properties> |
452 | | - <!-- Dependency versions --> |
453 | | - <additionalparam>-Xdoclint:none -Xlint:unchecked</additionalparam> |
454 | | - </properties> |
455 | 477 | </profile> |
456 | 478 | <!-- 发布到 Maven Central Portal:mvn -Prelease deploy(GPG 签名 + 源码 + Javadoc + Central 发布插件) --> |
| 479 | + |
457 | 480 | <profile> |
458 | 481 | <id>release</id> |
459 | 482 | <build> |
460 | 483 | <plugins> |
| 484 | + |
461 | 485 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
462 | 486 | <plugin> |
463 | 487 | <!-- 环境检查插件:代码编译前的环境监察 --> |
464 | 488 | <groupId>org.apache.maven.plugins</groupId> |
465 | 489 | <artifactId>maven-enforcer-plugin</artifactId> |
466 | 490 | </plugin> |
| 491 | + |
467 | 492 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
468 | 493 | <plugin> |
469 | 494 | <!-- 编译插件:编译主代码至主输出目录 --> |
470 | 495 | <groupId>org.apache.maven.plugins</groupId> |
471 | 496 | <artifactId>maven-compiler-plugin</artifactId> |
472 | 497 | </plugin> |
| 498 | + |
473 | 499 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
474 | 500 | <plugin> |
475 | 501 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
476 | 502 | <groupId>org.apache.maven.plugins</groupId> |
477 | 503 | <artifactId>maven-resources-plugin</artifactId> |
478 | 504 | </plugin> |
| 505 | + |
479 | 506 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
480 | 507 | <plugin> |
481 | 508 | <!-- 单元测试插件:执行测试用例 --> |
482 | 509 | <groupId>org.apache.maven.plugins</groupId> |
483 | 510 | <artifactId>maven-surefire-plugin</artifactId> |
484 | 511 | </plugin> |
| 512 | + |
485 | 513 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
486 | 514 | <plugin> |
487 | 515 | <!-- jar 包生成插件:创建项目 jar 包 --> |
488 | 516 | <groupId>org.apache.maven.plugins</groupId> |
489 | 517 | <artifactId>maven-jar-plugin</artifactId> |
490 | 518 | </plugin> |
| 519 | + |
491 | 520 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
492 | 521 | <plugin> |
493 | 522 | <!-- 源码插件:发布时自动将源码同时发布 --> |
494 | 523 | <groupId>org.apache.maven.plugins</groupId> |
495 | 524 | <artifactId>maven-source-plugin</artifactId> |
496 | 525 | </plugin> |
| 526 | + |
497 | 527 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
498 | 528 | <plugin> |
499 | 529 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
500 | 530 | <groupId>org.apache.maven.plugins</groupId> |
501 | 531 | <artifactId>maven-javadoc-plugin</artifactId> |
502 | 532 | </plugin> |
| 533 | + |
503 | 534 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
504 | 535 | <plugin> |
505 | 536 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
506 | 537 | <groupId>org.apache.maven.plugins</groupId> |
507 | 538 | <artifactId>maven-install-plugin</artifactId> |
508 | 539 | </plugin> |
| 540 | + |
509 | 541 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
510 | 542 | <plugin> |
511 | 543 | <!-- 签名插件:对制品进行 PGP 签名 --> |
512 | 544 | <groupId>org.apache.maven.plugins</groupId> |
513 | 545 | <artifactId>maven-gpg-plugin</artifactId> |
514 | 546 | </plugin> |
| 547 | + |
515 | 548 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
516 | 549 | <plugin> |
517 | 550 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
518 | 551 | <groupId>org.apache.maven.plugins</groupId> |
519 | 552 | <artifactId>maven-deploy-plugin</artifactId> |
520 | 553 | </plugin> |
| 554 | + |
521 | 555 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
522 | 556 | <plugin> |
523 | 557 | <!-- 发布管理插件:版本发布与标签管理 --> |
524 | 558 | <groupId>org.apache.maven.plugins</groupId> |
525 | 559 | <artifactId>maven-release-plugin</artifactId> |
526 | 560 | </plugin> |
| 561 | + |
527 | 562 | <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
528 | 563 | <plugin> |
529 | 564 | <!-- 发布插件:将制品发布到 Maven Central Portal --> |
|
534 | 569 | </build> |
535 | 570 | </profile> |
536 | 571 | </profiles> |
| 572 | + |
537 | 573 | </project> |
0 commit comments