|
36 | 36 | </developer> |
37 | 37 | </developers> |
38 | 38 |
|
39 | | - <distributionManagement> |
40 | | - <repository> |
41 | | - <id>2624322-release-6F6h6R</id> |
42 | | - <url>https://packages.aliyun.com/6927b116e6c3e0425dbdf60d/maven/2624322-release-6f6h6r</url> |
43 | | - </repository> |
44 | | - <snapshotRepository> |
45 | | - <id>2624322-snapshot-3EoOv3</id> |
46 | | - <url>https://packages.aliyun.com/6927b116e6c3e0425dbdf60d/maven/2624322-snapshot-3eoov3</url> |
47 | | - </snapshotRepository> |
48 | | - </distributionManagement> |
| 39 | + <!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 --> |
| 40 | + <properties> |
| 41 | + <!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
| 42 | + <java.version>21</java.version> |
| 43 | + <maven.compiler.release>${java.version}</maven.compiler.release> |
| 44 | + <maven.version>4.0.0-rc-5</maven.version> |
| 45 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 46 | + <!-- Dependency versions --> |
| 47 | + <commons-exec.version>1.6.0</commons-exec.version> |
| 48 | + <jackson.version>3.2.1</jackson.version> |
| 49 | + <jackson-bom.version>3.2.1</jackson-bom.version> |
| 50 | + <junit-jupiter.version>6.1.0</junit-jupiter.version> |
| 51 | + <junit.version>5.11.4</junit.version> |
| 52 | + <lombok.version>1.18.46</lombok.version> |
| 53 | + <slf4j.version>2.0.18</slf4j.version> |
| 54 | + <!-- Maven Plugin versions --> |
| 55 | + <maven-central-publishing-plugin.version>0.11.0</maven-central-publishing-plugin.version> |
| 56 | + <maven-clean-plugin.version>3.5.0</maven-clean-plugin.version> |
| 57 | + <maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version> |
| 58 | + <maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version> |
| 59 | + <maven-deploy-plugin.version>3.1.4</maven-deploy-plugin.version> |
| 60 | + <maven-enforcer-plugin.version>3.6.3</maven-enforcer-plugin.version> |
| 61 | + <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version> |
| 62 | + <maven-install-plugin.version>3.1.4</maven-install-plugin.version> |
| 63 | + <maven-jacoco-plugin.version>0.8.15</maven-jacoco-plugin.version> |
| 64 | + <maven-jar-plugin.version>3.5.0</maven-jar-plugin.version> |
| 65 | + <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version> |
| 66 | + <maven-nexus-staging-plugin.version>1.7.0</maven-nexus-staging-plugin.version> |
| 67 | + <maven-release-plugin.version>3.3.1</maven-release-plugin.version> |
| 68 | + <maven-resources-plugin.version>3.5.0</maven-resources-plugin.version> |
| 69 | + <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
| 70 | + <maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> |
| 71 | + </properties> |
49 | 72 |
|
| 73 | + <!-- 构建配置(Build) --> |
50 | 74 | <build> |
51 | 75 | <pluginManagement> |
52 | 76 | <plugins> |
|
87 | 111 | <configuration> |
88 | 112 | <rules> |
89 | 113 | <requireMavenVersion> |
90 | | - <message><![CDATA[You are running an older version of Maven. This application requires at least Maven 4.]]></message> |
| 114 | + <message> |
| 115 | + <![CDATA[You are running an older version of Maven. This application requires at least Maven 4.]]></message> |
91 | 116 | <version>[4.0.0,)</version> |
92 | 117 | </requireMavenVersion> |
93 | 118 | <requireJavaVersion> |
94 | 119 | <message> |
95 | | - You are running an older version of Java. This application requires at least JDK ${java.version}. |
| 120 | + You are running an older version of Java. This application requires at least |
| 121 | + JDK ${java.version}. |
96 | 122 | </message> |
97 | 123 | <version>[${java.version}.0,)</version> |
98 | 124 | </requireJavaVersion> |
|
307 | 333 | </plugins> |
308 | 334 | </build> |
309 | 335 |
|
| 336 | + <!-- 构建 Profile 配置 --> |
310 | 337 | <profiles> |
311 | 338 | <profile> |
312 | 339 | <id>disable-javadoc-doclint</id> |
|
435 | 462 | </build> |
436 | 463 | </profile> |
437 | 464 | </profiles> |
438 | | - |
439 | | - <properties> |
440 | | - <!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
441 | | - <java.version>21</java.version> |
442 | | - <maven.compiler.release>${java.version}</maven.compiler.release> |
443 | | - <maven.version>4.0.0-rc-5</maven.version> |
444 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
445 | | - <!-- Dependency versions --> |
446 | | - <commons-exec.version>1.6.0</commons-exec.version> |
447 | | - <jackson.version>3.2.1</jackson.version> |
448 | | - <jackson-bom.version>3.2.1</jackson-bom.version> |
449 | | - <junit-jupiter.version>6.1.0</junit-jupiter.version> |
450 | | - <junit.version>5.11.4</junit.version> |
451 | | - <lombok.version>1.18.46</lombok.version> |
452 | | - <slf4j.version>2.0.18</slf4j.version> |
453 | | - <!-- Maven Plugin versions --> |
454 | | - <maven-central-publishing-plugin.version>0.11.0</maven-central-publishing-plugin.version> |
455 | | - <maven-clean-plugin.version>3.5.0</maven-clean-plugin.version> |
456 | | - <maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version> |
457 | | - <maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version> |
458 | | - <maven-deploy-plugin.version>3.1.4</maven-deploy-plugin.version> |
459 | | - <maven-enforcer-plugin.version>3.6.3</maven-enforcer-plugin.version> |
460 | | - <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version> |
461 | | - <maven-install-plugin.version>3.1.4</maven-install-plugin.version> |
462 | | - <maven-jacoco-plugin.version>0.8.15</maven-jacoco-plugin.version> |
463 | | - <maven-jar-plugin.version>3.5.0</maven-jar-plugin.version> |
464 | | - <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version> |
465 | | - <maven-nexus-staging-plugin.version>1.7.0</maven-nexus-staging-plugin.version> |
466 | | - <maven-release-plugin.version>3.3.1</maven-release-plugin.version> |
467 | | - <maven-resources-plugin.version>3.5.0</maven-resources-plugin.version> |
468 | | - <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
469 | | - <maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> |
470 | | - </properties> |
471 | | - |
472 | | - <dependencyManagement> |
473 | | - <dependencies> |
474 | | - <!-- Jackson BOM --> |
475 | | - <dependency> |
476 | | - <groupId>tools.jackson</groupId> |
477 | | - <artifactId>jackson-bom</artifactId> |
478 | | - <version>${jackson-bom.version}</version> |
479 | | - <type>pom</type> |
480 | | - <scope>import</scope> |
481 | | - </dependency> |
482 | | - |
483 | | - <dependency> |
484 | | - <groupId>org.apache.commons</groupId> |
485 | | - <artifactId>commons-exec</artifactId> |
486 | | - <version>${commons-exec.version}</version> |
487 | | - </dependency> |
488 | | - |
489 | | - <dependency> |
490 | | - <groupId>org.slf4j</groupId> |
491 | | - <artifactId>slf4j-api</artifactId> |
492 | | - <version>${slf4j.version}</version> |
493 | | - </dependency> |
494 | | - |
495 | | - <dependency> |
496 | | - <groupId>org.projectlombok</groupId> |
497 | | - <artifactId>lombok</artifactId> |
498 | | - <version>${lombok.version}</version> |
499 | | - <scope>provided</scope> |
500 | | - </dependency> |
501 | | - |
502 | | - <dependency> |
503 | | - <groupId>org.junit.jupiter</groupId> |
504 | | - <artifactId>junit-jupiter</artifactId> |
505 | | - <version>${junit-jupiter.version}</version> |
506 | | - <scope>test</scope> |
507 | | - </dependency> |
508 | | - </dependencies> |
509 | | - </dependencyManagement> |
510 | | - |
511 | | - <dependencies> |
512 | | - |
513 | | - <dependency> |
514 | | - <groupId>tools.jackson.core</groupId> |
515 | | - <artifactId>jackson-databind</artifactId> |
516 | | - </dependency> |
517 | | - |
518 | | - <dependency> |
519 | | - <groupId>org.apache.commons</groupId> |
520 | | - <artifactId>commons-exec</artifactId> |
521 | | - </dependency> |
522 | | - |
523 | | - <dependency> |
524 | | - <groupId>org.slf4j</groupId> |
525 | | - <artifactId>slf4j-api</artifactId> |
526 | | - </dependency> |
527 | | - |
528 | | - <dependency> |
529 | | - <groupId>org.projectlombok</groupId> |
530 | | - <artifactId>lombok</artifactId> |
531 | | - <scope>provided</scope> |
532 | | - </dependency> |
533 | | - |
534 | | - <dependency> |
535 | | - <groupId>org.junit.jupiter</groupId> |
536 | | - <artifactId>junit-jupiter</artifactId> |
537 | | - <scope>test</scope> |
538 | | - </dependency> |
539 | | - </dependencies> |
540 | 465 | </project> |
0 commit comments