|
8 | 8 | <description>Codex CLI Java SDK — subprocess integration for OpenAI Codex agent</description> |
9 | 9 | <version>1.0.x.20260630-SNAPSHOT</version> |
10 | 10 | <packaging>jar</packaging> |
| 11 | + |
| 12 | + <!-- 开源协议采用 Apache 2.0 协议 --> |
11 | 13 | <licenses> |
12 | 14 | <license> |
13 | 15 | <name>The Apache Software License, Version 2.0</name> |
14 | 16 | <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> |
15 | 17 | </license> |
16 | 18 | </licenses> |
| 19 | + |
| 20 | + <!-- 源码仓库(SCM)信息 --> |
17 | 21 | <scm> |
18 | 22 | <connection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</connection> |
19 | 23 | <developerConnection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</developerConnection> |
20 | 24 | <url>https://github.com/easy-4-java/${project.artifactId}</url> |
21 | 25 | <tag>${project.artifactId}</tag> |
22 | 26 | </scm> |
| 27 | + |
| 28 | + <!-- 开发者信息 --> |
23 | 29 | <developers> |
24 | 30 | <developer> |
25 | 31 | <name>Loong Wan</name> |
|
31 | 37 | <timezone>+8</timezone> |
32 | 38 | </developer> |
33 | 39 | </developers> |
| 40 | + |
| 41 | + <!-- 制品发布仓库配置(distributionManagement) --> |
34 | 42 | <distributionManagement> |
35 | 43 | <repository> |
36 | 44 | <id>2624322-release-6F6h6R</id> |
|
41 | 49 | <url>https://packages.aliyun.com/6927b116e6c3e0425dbdf60d/maven/2624322-snapshot-3eoov3</url> |
42 | 50 | </snapshotRepository> |
43 | 51 | </distributionManagement> |
| 52 | + |
| 53 | + <!-- 构建配置(Build) --> |
44 | 54 | <build> |
| 55 | + |
| 56 | + <!-- 插件版本统一管理(pluginManagement) --> |
45 | 57 | <pluginManagement> |
46 | 58 | <plugins> |
| 59 | + |
| 60 | + <!-- Maven 编译插件:统一 Java 版本参数与 Lombok 注解处理 --> |
47 | 61 | <plugin> |
48 | 62 | <groupId>org.apache.maven.plugins</groupId> |
49 | 63 | <artifactId>maven-compiler-plugin</artifactId> |
|
90 | 104 | </execution> |
91 | 105 | </executions> |
92 | 106 | </plugin> |
| 107 | + |
| 108 | + <!-- GPG 签名插件:对制品进行 PGP 签名(Maven Central 发布要求) --> |
93 | 109 | <plugin> |
94 | 110 | <groupId>org.apache.maven.plugins</groupId> |
95 | 111 | <artifactId>maven-gpg-plugin</artifactId> |
|
129 | 145 | <goals>deploy</goals> |
130 | 146 | </configuration> |
131 | 147 | </plugin> |
| 148 | + |
| 149 | + <!-- Maven 源码插件:打包 sources.jar(Maven Central 发布要求) --> |
132 | 150 | <plugin> |
133 | 151 | <groupId>org.apache.maven.plugins</groupId> |
134 | 152 | <artifactId>maven-source-plugin</artifactId> |
|
175 | 193 | </archive> |
176 | 194 | </configuration> |
177 | 195 | </plugin> |
| 196 | + |
| 197 | + <!-- Maven Javadoc 插件:打包 javadoc.jar(Maven Central 发布要求) --> |
178 | 198 | <plugin> |
179 | 199 | <groupId>org.apache.maven.plugins</groupId> |
180 | 200 | <artifactId>maven-javadoc-plugin</artifactId> |
|
211 | 231 | </plugins> |
212 | 232 | </pluginManagement> |
213 | 233 | <plugins> |
| 234 | + |
| 235 | + <!-- JaCoCo 覆盖率插件:生成覆盖率报告并校验测试覆盖率(目标 90%) --> |
214 | 236 | <plugin> |
215 | 237 | <groupId>org.jacoco</groupId> |
216 | 238 | <artifactId>jacoco-maven-plugin</artifactId> |
217 | | - <version>${jacoco-maven-plugin.version}</version> |
| 239 | + <version>${maven-jacoco-plugin.version}</version> |
218 | 240 | <executions> |
219 | 241 | <execution> |
220 | 242 | <id>prepare-agent</id> |
|
253 | 275 | </execution> |
254 | 276 | </executions> |
255 | 277 | </plugin> |
| 278 | + |
| 279 | + <!-- Maven 编译插件:统一 Java 版本参数与 Lombok 注解处理 --> |
256 | 280 | <plugin> |
257 | 281 | <groupId>org.apache.maven.plugins</groupId> |
258 | 282 | <artifactId>maven-compiler-plugin</artifactId> |
|
274 | 298 | </plugin> |
275 | 299 | </plugins> |
276 | 300 | </build> |
| 301 | + |
| 302 | + <!-- 构建 Profile 配置 --> |
277 | 303 | <profiles> |
278 | 304 | <profile> |
279 | 305 | <id>disable-javadoc-doclint</id> |
280 | 306 | <activation> |
281 | 307 | <jdk>[1.8,)</jdk> |
282 | 308 | </activation> |
| 309 | + |
| 310 | + <!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 --> |
283 | 311 | <properties> |
284 | | - <central-publishing-maven-plugin.version>0.11.0</central-publishing-maven-plugin.version> |
| 312 | + <maven-central-publishing-plugin.version>0.11.0</maven-central-publishing-plugin.version> |
285 | 313 | <additionalparam>-Xdoclint:none</additionalparam> |
286 | | - <jacoco-maven-plugin.version>0.8.15</jacoco-maven-plugin.version> |
| 314 | + <maven-jacoco-plugin.version>0.8.15</maven-jacoco-plugin.version> |
287 | 315 | </properties> |
288 | 316 | </profile> |
289 | 317 | <profile> |
290 | 318 | <id>release</id> |
| 319 | + |
| 320 | + <!-- 构建配置(Build) --> |
291 | 321 | <build> |
292 | 322 | <plugins> |
293 | 323 | <plugin> |
294 | 324 | <groupId>org.apache.maven.plugins</groupId> |
295 | 325 | <artifactId>maven-enforcer-plugin</artifactId> |
296 | 326 | </plugin> |
| 327 | + |
| 328 | + <!-- Maven 编译插件:统一 Java 版本参数与 Lombok 注解处理 --> |
297 | 329 | <plugin> |
298 | 330 | <groupId>org.apache.maven.plugins</groupId> |
299 | 331 | <artifactId>maven-compiler-plugin</artifactId> |
|
310 | 342 | <groupId>org.apache.maven.plugins</groupId> |
311 | 343 | <artifactId>maven-jar-plugin</artifactId> |
312 | 344 | </plugin> |
| 345 | + |
| 346 | + <!-- Maven 源码插件:打包 sources.jar(Maven Central 发布要求) --> |
313 | 347 | <plugin> |
314 | 348 | <groupId>org.apache.maven.plugins</groupId> |
315 | 349 | <artifactId>maven-source-plugin</artifactId> |
316 | 350 | </plugin> |
| 351 | + |
| 352 | + <!-- Maven Javadoc 插件:打包 javadoc.jar(Maven Central 发布要求) --> |
317 | 353 | <plugin> |
318 | 354 | <groupId>org.apache.maven.plugins</groupId> |
319 | 355 | <artifactId>maven-javadoc-plugin</artifactId> |
|
322 | 358 | <groupId>org.apache.maven.plugins</groupId> |
323 | 359 | <artifactId>maven-install-plugin</artifactId> |
324 | 360 | </plugin> |
| 361 | + |
| 362 | + <!-- GPG 签名插件:对制品进行 PGP 签名(Maven Central 发布要求) --> |
325 | 363 | <plugin> |
326 | 364 | <groupId>org.apache.maven.plugins</groupId> |
327 | 365 | <artifactId>maven-gpg-plugin</artifactId> |
|
343 | 381 | </profile> |
344 | 382 | <profile> |
345 | 383 | <id>central</id> |
| 384 | + |
| 385 | + <!-- 构建配置(Build) --> |
346 | 386 | <build> |
347 | 387 | <plugins> |
| 388 | + |
| 389 | + <!-- GPG 签名插件:对制品进行 PGP 签名(Maven Central 发布要求) --> |
348 | 390 | <plugin> |
349 | 391 | <groupId>org.apache.maven.plugins</groupId> |
350 | 392 | <artifactId>maven-gpg-plugin</artifactId> |
|
359 | 401 | </execution> |
360 | 402 | </executions> |
361 | 403 | </plugin> |
| 404 | + |
| 405 | + <!-- Central Publishing 插件:发布制品到 Maven Central Portal --> |
362 | 406 | <plugin> |
363 | 407 | <groupId>org.sonatype.central</groupId> |
364 | 408 | <artifactId>central-publishing-maven-plugin</artifactId> |
365 | | - <version>${central-publishing-maven-plugin.version}</version> |
| 409 | + <version>${maven-central-publishing-plugin.version}</version> |
366 | 410 | <extensions>true</extensions> |
367 | 411 | <configuration> |
368 | 412 | <publishingServerId>central</publishingServerId> |
|
374 | 418 | </build> |
375 | 419 | </profile> |
376 | 420 | </profiles> |
| 421 | + |
| 422 | + <!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 --> |
377 | 423 | <properties> |
378 | 424 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
379 | 425 | <java.version>1.8</java.version> |
|
398 | 444 | <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
399 | 445 | <maven-nexus-staging-plugin.version>1.7.0</maven-nexus-staging-plugin.version> |
400 | 446 | </properties> |
| 447 | + |
| 448 | + <!-- 依赖版本统一管理(dependencyManagement) --> |
401 | 449 | <dependencyManagement> |
| 450 | + |
| 451 | + <!-- 项目依赖(dependencies) --> |
402 | 452 | <dependencies> |
403 | 453 | <dependency> |
404 | 454 | <groupId>com.fasterxml.jackson.core</groupId> |
|
429 | 479 | </dependency> |
430 | 480 | </dependencies> |
431 | 481 | </dependencyManagement> |
| 482 | + |
| 483 | + <!-- 项目依赖(dependencies) --> |
432 | 484 | <dependencies> |
433 | 485 | <dependency> |
434 | 486 | <groupId>com.fasterxml.jackson.core</groupId> |
|
0 commit comments