|
8 | 8 | <description>OpenClaw external integration SDK (HTTP Gateway + local CLI)</description> |
9 | 9 | <version>2.0.x.20260730-SNAPSHOT</version> |
10 | 10 | <packaging>jar</packaging> |
11 | | - |
12 | 11 | <!-- 开源协议采用 Apache 2.0 协议 --> |
13 | 12 | <licenses> |
14 | 13 | <license> |
15 | 14 | <name>The Apache Software License, Version 2.0</name> |
16 | 15 | <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> |
17 | 16 | </license> |
18 | 17 | </licenses> |
19 | | - |
20 | 18 | <!-- 源码仓库(SCM)信息 --> |
21 | 19 | <scm> |
22 | 20 | <connection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</connection> |
23 | 21 | <developerConnection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</developerConnection> |
24 | 22 | <url>https://github.com/easy-4-java/${project.artifactId}</url> |
25 | 23 | <tag>${project.artifactId}</tag> |
26 | 24 | </scm> |
27 | | - |
28 | 25 | <!-- 开发者信息 --> |
29 | 26 | <developers> |
30 | 27 | <developer> |
|
37 | 34 | <timezone>+8</timezone> |
38 | 35 | </developer> |
39 | 36 | </developers> |
40 | | - |
41 | 37 | <properties> |
42 | 38 | <!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
43 | 39 | <java.version>17</java.version> |
44 | 40 | <maven.compiler.release>${java.version}</maven.compiler.release> |
45 | 41 | <maven.version>4.0.0-rc-5</maven.version> |
46 | 42 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
47 | | - |
48 | | - |
49 | 43 | <!-- Dependency versions --> |
50 | 44 | <commons-exec.version>1.6.0</commons-exec.version> |
51 | 45 | <jackson.version>2.22.1</jackson.version> |
|
74 | 68 | <maven-resources-plugin.version>3.5.0</maven-resources-plugin.version> |
75 | 69 | <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
76 | 70 | <maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> |
77 | | - |
78 | 71 | </properties> |
79 | | - |
80 | 72 | <dependencyManagement> |
81 | 73 | <dependencies> |
82 | 74 | <!-- Jackson BOM --> |
|
144 | 136 | </dependency> |
145 | 137 | </dependencies> |
146 | 138 | </dependencyManagement> |
147 | | - |
148 | 139 | <dependencies> |
149 | 140 | <!-- For OkHttp --> |
150 | 141 | <dependency> |
|
193 | 184 | <artifactId>mockwebserver</artifactId> |
194 | 185 | <scope>test</scope> |
195 | 186 | </dependency> |
196 | | - <!-- For OkHttp Extension --> |
197 | | - <dependency> |
198 | | - <groupId>io.github.easy4j</groupId> |
199 | | - <artifactId>okhttp3-extension</artifactId> |
200 | | - </dependency> |
| 187 | + <!-- For OkHttp Extension --> |
| 188 | + <dependency> |
| 189 | + <groupId>io.github.easy4j</groupId> |
| 190 | + <artifactId>okhttp3-extension</artifactId> |
| 191 | + </dependency> |
201 | 192 | </dependencies> |
202 | | - |
203 | 193 | <distributionManagement> |
204 | 194 | <repository> |
205 | 195 | <id>2624322-release-6F6h6R</id> |
|
210 | 200 | <url>https://packages.aliyun.com/6927b116e6c3e0425dbdf60d/maven/2624322-snapshot-3eoov3</url> |
211 | 201 | </snapshotRepository> |
212 | 202 | </distributionManagement> |
213 | | - |
214 | 203 | <build> |
215 | 204 | <pluginManagement> |
216 | 205 | <plugins> |
217 | | - |
218 | 206 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
219 | 207 | <plugin> |
220 | 208 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
229 | 217 | <maxmem>512M</maxmem> |
230 | 218 | </configuration> |
231 | 219 | </plugin> |
232 | | - |
233 | 220 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
234 | 221 | <plugin> |
235 | 222 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
236 | 223 | <groupId>org.apache.maven.plugins</groupId> |
237 | 224 | <artifactId>maven-deploy-plugin</artifactId> |
238 | 225 | <version>${maven-deploy-plugin.version}</version> |
239 | 226 | </plugin> |
240 | | - |
241 | 227 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
242 | 228 | <plugin> |
243 | 229 | <!-- 环境检查插件:代码编译前的环境监察 --> |
|
270 | 256 | </execution> |
271 | 257 | </executions> |
272 | 258 | </plugin> |
273 | | - |
274 | 259 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
275 | 260 | <plugin> |
276 | 261 | <!-- 签名插件:对制品进行 PGP 签名 --> |
|
287 | 272 | </execution> |
288 | 273 | </executions> |
289 | 274 | </plugin> |
290 | | - |
291 | 275 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
292 | 276 | <plugin> |
293 | 277 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
294 | 278 | <groupId>org.apache.maven.plugins</groupId> |
295 | 279 | <artifactId>maven-install-plugin</artifactId> |
296 | 280 | <version>${maven-install-plugin.version}</version> |
297 | 281 | </plugin> |
298 | | - |
299 | 282 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
300 | 283 | <plugin> |
301 | 284 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
|
306 | 289 | <encoding>${project.build.sourceEncoding}</encoding> |
307 | 290 | </configuration> |
308 | 291 | </plugin> |
309 | | - |
310 | 292 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
311 | 293 | <plugin> |
312 | 294 | <!-- 发布管理插件:版本发布与标签管理 --> |
|
321 | 303 | <goals>deploy</goals> |
322 | 304 | </configuration> |
323 | 305 | </plugin> |
324 | | - |
325 | 306 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
326 | 307 | <plugin> |
327 | 308 | <!-- 源码插件:发布时自动将源码同时发布 --> |
|
337 | 318 | </execution> |
338 | 319 | </executions> |
339 | 320 | </plugin> |
340 | | - |
341 | 321 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
342 | 322 | <plugin> |
343 | 323 | <!-- 单元测试插件:执行测试用例 --> |
|
360 | 340 | </excludes> |
361 | 341 | </configuration> |
362 | 342 | </plugin> |
363 | | - |
364 | 343 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
365 | 344 | <plugin> |
366 | 345 | <!-- jar 包生成插件:创建项目 jar 包 --> |
|
377 | 356 | </archive> |
378 | 357 | </configuration> |
379 | 358 | </plugin> |
380 | | - |
381 | 359 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
382 | 360 | <plugin> |
383 | 361 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
|
400 | 378 | </execution> |
401 | 379 | </executions> |
402 | 380 | </plugin> |
403 | | - |
404 | 381 | <!-- https://mvnrepository.com/artifact/org.sonatype.plugins/nexus-staging-maven-plugin --> |
405 | 382 | <plugin> |
406 | 383 | <groupId>org.sonatype.plugins</groupId> |
|
416 | 393 | <detectBuildFailures>true</detectBuildFailures> |
417 | 394 | </configuration> |
418 | 395 | </plugin> |
419 | | - |
420 | 396 | <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
421 | 397 | <plugin> |
422 | 398 | <!-- 发布插件:将制品发布到 Maven Central Portal --> |
|
433 | 409 | </plugins> |
434 | 410 | </pluginManagement> |
435 | 411 | <plugins> |
436 | | - |
437 | 412 | <!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin --> |
438 | 413 | <plugin> |
439 | 414 | <!-- 覆盖率插件:生成覆盖率报告并校验测试覆盖率(目标 90%) --> |
|
478 | 453 | </execution> |
479 | 454 | </executions> |
480 | 455 | </plugin> |
481 | | - |
482 | 456 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
483 | 457 | <plugin> |
484 | 458 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
501 | 475 | </plugin> |
502 | 476 | </plugins> |
503 | 477 | </build> |
504 | | - |
505 | 478 | <profiles> |
506 | 479 | <profile> |
507 | 480 | <id>disable-javadoc-doclint</id> |
|
511 | 484 | <properties> |
512 | 485 | <maven-central-publishing-plugin.version>0.11.0</maven-central-publishing-plugin.version> |
513 | 486 | <additionalparam>-Xdoclint:none -Xlint:unchecked</additionalparam> |
514 | | - |
515 | | - <junit.version>4.13.2</junit.version> |
516 | | - <slf4j.version>2.0.18</slf4j.version> |
517 | | - <lombok.version>1.18.46</lombok.version> |
518 | | - <jackson.version>2.22.1</jackson.version> |
519 | | - <jackson-annotations.version>2.22</jackson-annotations.version> |
520 | | - <commons-lang.version>2.6</commons-lang.version> |
521 | | - |
522 | | - </properties> |
| 487 | + <junit.version>4.13.2</junit.version> |
| 488 | + <slf4j.version>2.0.18</slf4j.version> |
| 489 | + <lombok.version>1.18.46</lombok.version> |
| 490 | + <jackson.version>2.22.1</jackson.version> |
| 491 | + <jackson-annotations.version>2.22</jackson-annotations.version> |
| 492 | + <commons-lang.version>2.6</commons-lang.version> |
| 493 | + </properties> |
523 | 494 | </profile> |
524 | 495 | <!-- 发布到 Maven Central Portal:mvn -Prelease deploy(GPG 签名 + 源码 + Javadoc + Central 发布插件) --> |
525 | | - |
526 | 496 | <profile> |
527 | 497 | <id>release</id> |
528 | 498 | <build> |
529 | 499 | <plugins> |
530 | | - |
531 | 500 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
532 | 501 | <plugin> |
533 | 502 | <!-- 环境检查插件:代码编译前的环境监察 --> |
534 | 503 | <groupId>org.apache.maven.plugins</groupId> |
535 | 504 | <artifactId>maven-enforcer-plugin</artifactId> |
536 | 505 | </plugin> |
537 | | - |
538 | 506 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
539 | 507 | <plugin> |
540 | 508 | <!-- 编译插件:编译主代码至主输出目录 --> |
541 | 509 | <groupId>org.apache.maven.plugins</groupId> |
542 | 510 | <artifactId>maven-compiler-plugin</artifactId> |
543 | 511 | </plugin> |
544 | | - |
545 | 512 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
546 | 513 | <plugin> |
547 | 514 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
548 | 515 | <groupId>org.apache.maven.plugins</groupId> |
549 | 516 | <artifactId>maven-resources-plugin</artifactId> |
550 | 517 | </plugin> |
551 | | - |
552 | 518 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
553 | 519 | <plugin> |
554 | 520 | <!-- 单元测试插件:执行测试用例 --> |
555 | 521 | <groupId>org.apache.maven.plugins</groupId> |
556 | 522 | <artifactId>maven-surefire-plugin</artifactId> |
557 | 523 | </plugin> |
558 | | - |
559 | 524 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
560 | 525 | <plugin> |
561 | 526 | <!-- jar 包生成插件:创建项目 jar 包 --> |
562 | 527 | <groupId>org.apache.maven.plugins</groupId> |
563 | 528 | <artifactId>maven-jar-plugin</artifactId> |
564 | 529 | </plugin> |
565 | | - |
566 | 530 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
567 | 531 | <plugin> |
568 | 532 | <!-- 源码插件:发布时自动将源码同时发布 --> |
569 | 533 | <groupId>org.apache.maven.plugins</groupId> |
570 | 534 | <artifactId>maven-source-plugin</artifactId> |
571 | 535 | </plugin> |
572 | | - |
573 | 536 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
574 | 537 | <plugin> |
575 | 538 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
576 | 539 | <groupId>org.apache.maven.plugins</groupId> |
577 | 540 | <artifactId>maven-javadoc-plugin</artifactId> |
578 | 541 | </plugin> |
579 | | - |
580 | 542 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
581 | 543 | <plugin> |
582 | 544 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
583 | 545 | <groupId>org.apache.maven.plugins</groupId> |
584 | 546 | <artifactId>maven-install-plugin</artifactId> |
585 | 547 | </plugin> |
586 | | - |
587 | 548 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
588 | 549 | <plugin> |
589 | 550 | <!-- 签名插件:对制品进行 PGP 签名 --> |
590 | 551 | <groupId>org.apache.maven.plugins</groupId> |
591 | 552 | <artifactId>maven-gpg-plugin</artifactId> |
592 | 553 | </plugin> |
593 | | - |
594 | 554 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
595 | 555 | <plugin> |
596 | 556 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
597 | 557 | <groupId>org.apache.maven.plugins</groupId> |
598 | 558 | <artifactId>maven-deploy-plugin</artifactId> |
599 | 559 | </plugin> |
600 | | - |
601 | 560 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
602 | 561 | <plugin> |
603 | 562 | <!-- 发布管理插件:版本发布与标签管理 --> |
604 | 563 | <groupId>org.apache.maven.plugins</groupId> |
605 | 564 | <artifactId>maven-release-plugin</artifactId> |
606 | 565 | </plugin> |
607 | | - |
608 | 566 | <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
609 | 567 | <plugin> |
610 | 568 | <groupId>org.sonatype.central</groupId> |
|
614 | 572 | </build> |
615 | 573 | </profile> |
616 | 574 | </profiles> |
617 | | - |
618 | 575 | </project> |
0 commit comments