Skip to content

Commit d586a16

Browse files
committed
fix(pom): normalize formatting with xmllint (4-space indent)
1 parent 61445e1 commit d586a16

1 file changed

Lines changed: 11 additions & 52 deletions

File tree

pom.xml

Lines changed: 11 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,20 @@
88
<description>OpenCode Java SDK - JDK 1.8 line</description>
99
<version>1.0.x.20260730-SNAPSHOT</version>
1010
<packaging>jar</packaging>
11-
1211
<!-- 开源协议采用 Apache 2.0 协议 -->
1312
<licenses>
1413
<license>
1514
<name>The Apache Software License, Version 2.0</name>
1615
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
1716
</license>
1817
</licenses>
19-
2018
<!-- 源码仓库(SCM)信息 -->
2119
<scm>
2220
<connection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</connection>
2321
<developerConnection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</developerConnection>
2422
<url>https://github.com/easy-4-java/${project.artifactId}</url>
2523
<tag>${project.artifactId}</tag>
2624
</scm>
27-
2825
<!-- 开发者信息 -->
2926
<developers>
3027
<developer>
@@ -37,7 +34,6 @@
3734
<timezone>+8</timezone>
3835
</developer>
3936
</developers>
40-
4137
<!-- 制品发布仓库配置(distributionManagement) -->
4238
<distributionManagement>
4339
<repository>
@@ -49,7 +45,6 @@
4945
<url>https://packages.aliyun.com/6927b116e6c3e0425dbdf60d/maven/2624322-snapshot-3eoov3</url>
5046
</snapshotRepository>
5147
</distributionManagement>
52-
5348
<!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 -->
5449
<properties>
5550
<!-- ═══ 第一段: 基础属性(自然排序)═══ -->
@@ -83,10 +78,7 @@
8378
<maven-resources-plugin.version>3.5.0</maven-resources-plugin.version>
8479
<maven-source-plugin.version>3.4.0</maven-source-plugin.version>
8580
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
86-
8781
</properties>
88-
89-
9082
<!-- 依赖版本统一管理(dependencyManagement) -->
9183
<dependencyManagement>
9284
<dependencies>
@@ -139,24 +131,23 @@
139131
<dependency>
140132
<groupId>com.squareup.okhttp3</groupId>
141133
<artifactId>okhttp</artifactId>
142-
<version>${okhttp.version}</version>
134+
<version>${okhttp.version}</version>
143135
</dependency>
144136
<!-- For OkHttp -->
145137
<dependency>
146138
<groupId>com.squareup.okhttp3</groupId>
147139
<artifactId>okhttp-sse</artifactId>
148-
<version>${okhttp.version}</version>
140+
<version>${okhttp.version}</version>
149141
</dependency>
150142
<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/mockwebserver -->
151143
<dependency>
152144
<groupId>com.squareup.okhttp3</groupId>
153145
<artifactId>mockwebserver</artifactId>
154146
<scope>test</scope>
155-
<version>${okhttp.version}</version>
147+
<version>${okhttp.version}</version>
156148
</dependency>
157149
</dependencies>
158150
</dependencyManagement>
159-
160151
<!-- 项目依赖(dependencies) -->
161152
<dependencies>
162153
<dependency>
@@ -207,20 +198,17 @@
207198
<scope>test</scope>
208199
</dependency>
209200
</dependencies>
210-
211201
<!-- 构建配置(Build) -->
212202
<build>
213203
<pluginManagement>
214204
<plugins>
215-
216205
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-clean-plugin -->
217206
<plugin>
218207
<!-- 清理插件:清理构建输出目录 -->
219208
<groupId>org.apache.maven.plugins</groupId>
220209
<artifactId>maven-clean-plugin</artifactId>
221210
<version>${maven-clean-plugin.version}</version>
222211
</plugin>
223-
224212
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
225213
<plugin>
226214
<!-- 编译插件:编译主代码至主输出目录 -->
@@ -241,15 +229,13 @@
241229
</annotationProcessorPaths>
242230
</configuration>
243231
</plugin>
244-
245232
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin -->
246233
<plugin>
247234
<!-- 发布插件:将项目输出构件部署到远程仓库 -->
248235
<groupId>org.apache.maven.plugins</groupId>
249236
<artifactId>maven-deploy-plugin</artifactId>
250237
<version>${maven-deploy-plugin.version}</version>
251238
</plugin>
252-
253239
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin -->
254240
<plugin>
255241
<!-- 环境检查插件:代码编译前的环境监察 -->
@@ -267,22 +253,21 @@
267253
<rules>
268254
<requireMavenVersion>
269255
<message>
270-
You are running an older version of Maven. This application requires at least Maven ${maven.version}.
271-
</message>
256+
You are running an older version of Maven. This application requires at least Maven ${maven.version}.
257+
</message>
272258
<version>[${maven.version}.0,)</version>
273259
</requireMavenVersion>
274260
<requireJavaVersion>
275261
<message>
276-
You are running an older version of Java. This application requires at least JDK ${java.version}.
277-
</message>
262+
You are running an older version of Java. This application requires at least JDK ${java.version}.
263+
</message>
278264
<version>[${java.version}.0,)</version>
279265
</requireJavaVersion>
280266
</rules>
281267
</configuration>
282268
</execution>
283269
</executions>
284270
</plugin>
285-
286271
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin -->
287272
<plugin>
288273
<!-- 签名插件:对制品进行 PGP 签名 -->
@@ -299,15 +284,13 @@
299284
</execution>
300285
</executions>
301286
</plugin>
302-
303287
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin -->
304288
<plugin>
305289
<!-- 安装插件:将项目输出构件安装到本地仓库 -->
306290
<groupId>org.apache.maven.plugins</groupId>
307291
<artifactId>maven-install-plugin</artifactId>
308292
<version>${maven-install-plugin.version}</version>
309293
</plugin>
310-
311294
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin -->
312295
<plugin>
313296
<!-- 资源插件:复制主资源文件至主输出目录 -->
@@ -318,7 +301,6 @@
318301
<encoding>${project.build.sourceEncoding}</encoding>
319302
</configuration>
320303
</plugin>
321-
322304
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin -->
323305
<plugin>
324306
<!-- 发布管理插件:版本发布与标签管理 -->
@@ -333,7 +315,6 @@
333315
<goals>deploy</goals>
334316
</configuration>
335317
</plugin>
336-
337318
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin -->
338319
<plugin>
339320
<!-- 源码插件:发布时自动将源码同时发布 -->
@@ -352,7 +333,6 @@
352333
</execution>
353334
</executions>
354335
</plugin>
355-
356336
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin -->
357337
<plugin>
358338
<!-- 单元测试插件:执行测试用例 -->
@@ -374,7 +354,6 @@
374354
</excludes>
375355
</configuration>
376356
</plugin>
377-
378357
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin -->
379358
<plugin>
380359
<!-- jar 包生成插件:创建项目 jar 包 -->
@@ -391,7 +370,6 @@
391370
</archive>
392371
</configuration>
393372
</plugin>
394-
395373
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin -->
396374
<plugin>
397375
<!-- 文档插件:发布时自动生成 Javadoc 并发布 -->
@@ -414,7 +392,6 @@
414392
</execution>
415393
</executions>
416394
</plugin>
417-
418395
<!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin -->
419396
<plugin>
420397
<!-- 发布插件:将制品发布到 Maven Central Portal -->
@@ -431,7 +408,6 @@
431408
</plugins>
432409
</pluginManagement>
433410
<plugins>
434-
435411
<!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin -->
436412
<plugin>
437413
<!-- 覆盖率插件:生成覆盖率报告并校验测试覆盖率(目标 90%) -->
@@ -476,7 +452,6 @@
476452
</execution>
477453
</executions>
478454
</plugin>
479-
480455
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
481456
<plugin>
482457
<!-- 编译插件:编译主代码至主输出目录 -->
@@ -499,105 +474,89 @@
499474
</plugin>
500475
</plugins>
501476
</build>
502-
503477
<!-- 构建 Profile 配置 -->
504478
<profiles>
505479
<profile>
506480
<id>disable-javadoc-doclint</id>
507481
<activation>
508482
<jdk>[1.8,)</jdk>
509483
</activation>
510-
<properties>
511-
<!-- Dependency versions -->
512-
<additionalparam>-Xdoclint:none -Xlint:unchecked</additionalparam>
513-
514-
</properties>
515-
484+
<properties>
485+
<!-- Dependency versions -->
486+
<additionalparam>-Xdoclint:none -Xlint:unchecked</additionalparam>
487+
</properties>
516488
</profile>
517489
<!-- 发布到 Maven Central Portal:mvn -Prelease deploy(GPG 签名 + 源码 + Javadoc + Central 发布插件) -->
518-
519490
<profile>
520491
<id>release</id>
521492
<build>
522493
<plugins>
523-
524494
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin -->
525495
<plugin>
526496
<!-- 环境检查插件:代码编译前的环境监察 -->
527497
<groupId>org.apache.maven.plugins</groupId>
528498
<artifactId>maven-enforcer-plugin</artifactId>
529499
</plugin>
530-
531500
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
532501
<plugin>
533502
<!-- 编译插件:编译主代码至主输出目录 -->
534503
<groupId>org.apache.maven.plugins</groupId>
535504
<artifactId>maven-compiler-plugin</artifactId>
536505
</plugin>
537-
538506
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin -->
539507
<plugin>
540508
<!-- 资源插件:复制主资源文件至主输出目录 -->
541509
<groupId>org.apache.maven.plugins</groupId>
542510
<artifactId>maven-resources-plugin</artifactId>
543511
</plugin>
544-
545512
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin -->
546513
<plugin>
547514
<!-- 单元测试插件:执行测试用例 -->
548515
<groupId>org.apache.maven.plugins</groupId>
549516
<artifactId>maven-surefire-plugin</artifactId>
550517
</plugin>
551-
552518
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin -->
553519
<plugin>
554520
<!-- jar 包生成插件:创建项目 jar 包 -->
555521
<groupId>org.apache.maven.plugins</groupId>
556522
<artifactId>maven-jar-plugin</artifactId>
557523
</plugin>
558-
559524
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin -->
560525
<plugin>
561526
<!-- 源码插件:发布时自动将源码同时发布 -->
562527
<groupId>org.apache.maven.plugins</groupId>
563528
<artifactId>maven-source-plugin</artifactId>
564529
</plugin>
565-
566530
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin -->
567531
<plugin>
568532
<!-- 文档插件:发布时自动生成 Javadoc 并发布 -->
569533
<groupId>org.apache.maven.plugins</groupId>
570534
<artifactId>maven-javadoc-plugin</artifactId>
571535
</plugin>
572-
573536
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin -->
574537
<plugin>
575538
<!-- 安装插件:将项目输出构件安装到本地仓库 -->
576539
<groupId>org.apache.maven.plugins</groupId>
577540
<artifactId>maven-install-plugin</artifactId>
578541
</plugin>
579-
580542
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin -->
581543
<plugin>
582544
<!-- 签名插件:对制品进行 PGP 签名 -->
583545
<groupId>org.apache.maven.plugins</groupId>
584546
<artifactId>maven-gpg-plugin</artifactId>
585547
</plugin>
586-
587548
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin -->
588549
<plugin>
589550
<!-- 发布插件:将项目输出构件部署到远程仓库 -->
590551
<groupId>org.apache.maven.plugins</groupId>
591552
<artifactId>maven-deploy-plugin</artifactId>
592553
</plugin>
593-
594554
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin -->
595555
<plugin>
596556
<!-- 发布管理插件:版本发布与标签管理 -->
597557
<groupId>org.apache.maven.plugins</groupId>
598558
<artifactId>maven-release-plugin</artifactId>
599559
</plugin>
600-
601560
<!-- https://mvnrepository.com/artifact/org.sonatype.central/central-publishing-maven-plugin -->
602561
<plugin>
603562
<!-- 发布插件:将制品发布到 Maven Central Portal -->

0 commit comments

Comments
 (0)