|
8 | 8 | <description>Claude Code CLI Java SDK — subprocess integration for Anthropic Claude Code agent</description> |
9 | 9 | <version>3.0.x.20260630-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 | <!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 --> |
42 | 38 | <properties> |
43 | 39 | <!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
|
70 | 66 | <maven-resources-plugin.version>3.5.0</maven-resources-plugin.version> |
71 | 67 | <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
72 | 68 | <maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> |
73 | | - |
74 | 69 | </properties> |
75 | | - |
76 | 70 | <!-- 依赖版本统一管理(dependencyManagement) --> |
77 | 71 | <dependencyManagement> |
78 | 72 | <dependencies> |
|
84 | 78 | <type>pom</type> |
85 | 79 | <scope>import</scope> |
86 | 80 | </dependency> |
87 | | - |
88 | 81 | <dependency> |
89 | 82 | <groupId>org.apache.commons</groupId> |
90 | 83 | <artifactId>commons-exec</artifactId> |
91 | 84 | <version>${commons-exec.version}</version> |
92 | 85 | </dependency> |
93 | | - |
94 | 86 | <dependency> |
95 | 87 | <groupId>org.slf4j</groupId> |
96 | 88 | <artifactId>slf4j-api</artifactId> |
97 | 89 | <version>${slf4j.version}</version> |
98 | 90 | </dependency> |
99 | | - |
100 | 91 | <dependency> |
101 | 92 | <groupId>org.projectlombok</groupId> |
102 | 93 | <artifactId>lombok</artifactId> |
103 | 94 | <version>${lombok.version}</version> |
104 | 95 | <scope>provided</scope> |
105 | 96 | </dependency> |
106 | | - |
107 | 97 | <dependency> |
108 | 98 | <groupId>org.junit.jupiter</groupId> |
109 | 99 | <artifactId>junit-jupiter</artifactId> |
|
112 | 102 | </dependency> |
113 | 103 | </dependencies> |
114 | 104 | </dependencyManagement> |
115 | | - |
116 | 105 | <!-- 项目依赖(dependencies) --> |
117 | 106 | <dependencies> |
118 | | - |
119 | 107 | <dependency> |
120 | 108 | <groupId>tools.jackson.core</groupId> |
121 | 109 | <artifactId>jackson-databind</artifactId> |
122 | 110 | </dependency> |
123 | | - |
124 | 111 | <dependency> |
125 | 112 | <groupId>org.apache.commons</groupId> |
126 | 113 | <artifactId>commons-exec</artifactId> |
127 | 114 | </dependency> |
128 | | - |
129 | 115 | <dependency> |
130 | 116 | <groupId>org.slf4j</groupId> |
131 | 117 | <artifactId>slf4j-api</artifactId> |
132 | 118 | </dependency> |
133 | | - |
134 | 119 | <dependency> |
135 | 120 | <groupId>org.projectlombok</groupId> |
136 | 121 | <artifactId>lombok</artifactId> |
137 | 122 | <scope>provided</scope> |
138 | 123 | </dependency> |
139 | | - |
140 | 124 | <dependency> |
141 | 125 | <groupId>org.junit.jupiter</groupId> |
142 | 126 | <artifactId>junit-jupiter</artifactId> |
143 | 127 | <scope>test</scope> |
144 | 128 | </dependency> |
145 | 129 | </dependencies> |
146 | | - |
147 | 130 | <!-- 制品发布仓库配置(distributionManagement) --> |
148 | 131 | <distributionManagement> |
149 | 132 | <repository> |
|
155 | 138 | <url>https://packages.aliyun.com/6927b116e6c3e0425dbdf60d/maven/2624322-snapshot-3eoov3</url> |
156 | 139 | </snapshotRepository> |
157 | 140 | </distributionManagement> |
158 | | - |
159 | 141 | <!-- 构建配置(Build) --> |
160 | 142 | <build> |
161 | 143 | <pluginManagement> |
162 | 144 | <plugins> |
163 | | - |
164 | 145 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
165 | 146 | <plugin> |
166 | 147 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
173 | 154 | <maxmem>512M</maxmem> |
174 | 155 | </configuration> |
175 | 156 | </plugin> |
176 | | - |
177 | 157 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
178 | 158 | <plugin> |
179 | 159 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
180 | 160 | <groupId>org.apache.maven.plugins</groupId> |
181 | 161 | <artifactId>maven-deploy-plugin</artifactId> |
182 | 162 | <version>${maven-deploy-plugin.version}</version> |
183 | 163 | </plugin> |
184 | | - |
185 | 164 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
186 | 165 | <plugin> |
187 | 166 | <!-- 环境检查插件:代码编译前的环境监察 --> |
|
203 | 182 | </requireMavenVersion> |
204 | 183 | <requireJavaVersion> |
205 | 184 | <message> |
206 | | - You are running an older version of Java. This application requires at least JDK ${java.version}. |
207 | | - </message> |
| 185 | + You are running an older version of Java. This application requires at least JDK ${java.version}. |
| 186 | + </message> |
208 | 187 | <version>[${java.version}.0,)</version> |
209 | 188 | </requireJavaVersion> |
210 | 189 | </rules> |
211 | 190 | </configuration> |
212 | 191 | </execution> |
213 | 192 | </executions> |
214 | 193 | </plugin> |
215 | | - |
216 | 194 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
217 | 195 | <plugin> |
218 | 196 | <!-- 签名插件:对制品进行 PGP 签名 --> |
|
229 | 207 | </execution> |
230 | 208 | </executions> |
231 | 209 | </plugin> |
232 | | - |
233 | 210 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
234 | 211 | <plugin> |
235 | 212 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
236 | 213 | <groupId>org.apache.maven.plugins</groupId> |
237 | 214 | <artifactId>maven-install-plugin</artifactId> |
238 | 215 | <version>${maven-install-plugin.version}</version> |
239 | 216 | </plugin> |
240 | | - |
241 | 217 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
242 | 218 | <plugin> |
243 | 219 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
|
248 | 224 | <encoding>${project.build.sourceEncoding}</encoding> |
249 | 225 | </configuration> |
250 | 226 | </plugin> |
251 | | - |
252 | 227 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
253 | 228 | <plugin> |
254 | 229 | <!-- 发布管理插件:版本发布与标签管理 --> |
|
263 | 238 | <goals>deploy</goals> |
264 | 239 | </configuration> |
265 | 240 | </plugin> |
266 | | - |
267 | 241 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
268 | 242 | <plugin> |
269 | 243 | <!-- 源码插件:发布时自动将源码同时发布 --> |
|
279 | 253 | </execution> |
280 | 254 | </executions> |
281 | 255 | </plugin> |
282 | | - |
283 | 256 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
284 | 257 | <plugin> |
285 | 258 | <!-- 单元测试插件:执行测试用例 --> |
|
301 | 274 | </excludes> |
302 | 275 | </configuration> |
303 | 276 | </plugin> |
304 | | - |
305 | 277 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
306 | 278 | <plugin> |
307 | 279 | <!-- jar 包生成插件:创建项目 jar 包 --> |
|
318 | 290 | </archive> |
319 | 291 | </configuration> |
320 | 292 | </plugin> |
321 | | - |
322 | 293 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
323 | 294 | <plugin> |
324 | 295 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
|
340 | 311 | </execution> |
341 | 312 | </executions> |
342 | 313 | </plugin> |
343 | | - |
344 | 314 | <!-- https://mvnrepository.com/artifact/org.sonatype.plugins/nexus-staging-maven-plugin --> |
345 | 315 | <plugin> |
346 | 316 | <groupId>org.sonatype.plugins</groupId> |
|
359 | 329 | </plugins> |
360 | 330 | </pluginManagement> |
361 | 331 | <plugins> |
362 | | - |
363 | 332 | <!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin --> |
364 | 333 | <plugin> |
365 | 334 | <!-- 覆盖率插件:生成覆盖率报告并校验测试覆盖率(目标 90%) --> |
|
404 | 373 | </execution> |
405 | 374 | </executions> |
406 | 375 | </plugin> |
407 | | - |
408 | 376 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
409 | 377 | <plugin> |
410 | 378 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
427 | 395 | </plugin> |
428 | 396 | </plugins> |
429 | 397 | </build> |
430 | | - |
431 | 398 | <!-- 构建 Profile 配置 --> |
432 | 399 | <profiles> |
433 | 400 | <profile> |
|
438 | 405 | <properties> |
439 | 406 | <!-- Dependency versions --> |
440 | 407 | <additionalparam>-Xdoclint:none</additionalparam> |
441 | | - |
442 | | - </properties> |
| 408 | + </properties> |
443 | 409 | </profile> |
444 | | - |
445 | 410 | <profile> |
446 | 411 | <id>release</id> |
447 | 412 | <build> |
448 | 413 | <plugins> |
449 | | - |
450 | 414 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
451 | 415 | <plugin> |
452 | 416 | <!-- 环境检查插件:代码编译前的环境监察 --> |
453 | 417 | <groupId>org.apache.maven.plugins</groupId> |
454 | 418 | <artifactId>maven-enforcer-plugin</artifactId> |
455 | 419 | </plugin> |
456 | | - |
457 | 420 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
458 | 421 | <plugin> |
459 | 422 | <!-- 编译插件:编译主代码至主输出目录 --> |
460 | 423 | <groupId>org.apache.maven.plugins</groupId> |
461 | 424 | <artifactId>maven-compiler-plugin</artifactId> |
462 | 425 | </plugin> |
463 | | - |
464 | 426 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
465 | 427 | <plugin> |
466 | 428 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
467 | 429 | <groupId>org.apache.maven.plugins</groupId> |
468 | 430 | <artifactId>maven-resources-plugin</artifactId> |
469 | 431 | </plugin> |
470 | | - |
471 | 432 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
472 | 433 | <plugin> |
473 | 434 | <!-- 单元测试插件:执行测试用例 --> |
474 | 435 | <groupId>org.apache.maven.plugins</groupId> |
475 | 436 | <artifactId>maven-surefire-plugin</artifactId> |
476 | 437 | </plugin> |
477 | | - |
478 | 438 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
479 | 439 | <plugin> |
480 | 440 | <!-- jar 包生成插件:创建项目 jar 包 --> |
481 | 441 | <groupId>org.apache.maven.plugins</groupId> |
482 | 442 | <artifactId>maven-jar-plugin</artifactId> |
483 | 443 | </plugin> |
484 | | - |
485 | 444 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
486 | 445 | <plugin> |
487 | 446 | <!-- 源码插件:发布时自动将源码同时发布 --> |
488 | 447 | <groupId>org.apache.maven.plugins</groupId> |
489 | 448 | <artifactId>maven-source-plugin</artifactId> |
490 | 449 | </plugin> |
491 | | - |
492 | 450 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
493 | 451 | <plugin> |
494 | 452 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
495 | 453 | <groupId>org.apache.maven.plugins</groupId> |
496 | 454 | <artifactId>maven-javadoc-plugin</artifactId> |
497 | 455 | </plugin> |
498 | | - |
499 | 456 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
500 | 457 | <plugin> |
501 | 458 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
502 | 459 | <groupId>org.apache.maven.plugins</groupId> |
503 | 460 | <artifactId>maven-install-plugin</artifactId> |
504 | 461 | </plugin> |
505 | | - |
506 | 462 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
507 | 463 | <plugin> |
508 | 464 | <!-- 签名插件:对制品进行 PGP 签名 --> |
509 | 465 | <groupId>org.apache.maven.plugins</groupId> |
510 | 466 | <artifactId>maven-gpg-plugin</artifactId> |
511 | 467 | </plugin> |
512 | | - |
513 | 468 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
514 | 469 | <plugin> |
515 | 470 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
516 | 471 | <groupId>org.apache.maven.plugins</groupId> |
517 | 472 | <artifactId>maven-deploy-plugin</artifactId> |
518 | 473 | </plugin> |
519 | | - |
520 | 474 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
521 | 475 | <plugin> |
522 | 476 | <!-- 发布管理插件:版本发布与标签管理 --> |
523 | 477 | <groupId>org.apache.maven.plugins</groupId> |
524 | 478 | <artifactId>maven-release-plugin</artifactId> |
525 | 479 | </plugin> |
526 | | - |
527 | 480 | <!-- https://mvnrepository.com/artifact/org.sonatype.plugins/nexus-staging-maven-plugin --> |
528 | 481 | <plugin> |
529 | 482 | <groupId>org.sonatype.plugins</groupId> |
|
532 | 485 | </plugins> |
533 | 486 | </build> |
534 | 487 | </profile> |
535 | | - |
536 | 488 | <profile> |
537 | 489 | <id>central</id> |
538 | 490 | <build> |
539 | 491 | <plugins> |
540 | | - |
541 | 492 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
542 | 493 | <plugin> |
543 | 494 | <!-- 签名插件:对制品进行 PGP 签名 --> |
|
554 | 505 | </execution> |
555 | 506 | </executions> |
556 | 507 | </plugin> |
557 | | - |
558 | 508 | <!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin --> |
559 | 509 | <plugin> |
560 | 510 | <!-- 发布插件:将制品发布到 Maven Central Portal --> |
|
0 commit comments