From d73b8f445da891aee607089a08226ced70971692 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Thu, 28 May 2026 23:23:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20Maven=20=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E6=8F=92=E4=BB=B6=E9=85=8D=E7=BD=AE=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加flatten-maven-plugin用于生成完整的POM文件以支持OSS发布, 并移除重复的开发者信息配置, 添加GPG签名和Central发布插件配置到release profile中, 同时更新父POM和子模块版本从SNAPSHOT到RC4。 --- .gitignore | 2 + plusone-validator/pom.xml | 24 +-------- pom.xml | 111 ++++++++++++++++++++++---------------- 3 files changed, 69 insertions(+), 68 deletions(-) diff --git a/.gitignore b/.gitignore index 549e00a..033f923 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ target/ !**/src/main/**/target/ !**/src/test/**/target/ +.flattened-pom.xml + ### STS ### .apt_generated .classpath diff --git a/plusone-validator/pom.xml b/plusone-validator/pom.xml index 0f999a6..c283fb4 100644 --- a/plusone-validator/pom.xml +++ b/plusone-validator/pom.xml @@ -8,7 +8,8 @@ xyz.zhouxy.plusone plusone-validator-parent - 1.0.0-SNAPSHOT + 1.0.0-RC1 + ../pom.xml plusone-validator @@ -18,27 +19,6 @@ Plusone Validator 是一个校验库,使用 lambda 表达式(包括方法引用)和流式 API 构建校验规则,对对象进行校验。 - - - Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0 - repo - - - - - - Zhou Xingyi (周兴毅) - https://gitea.zhouxy.xyz/plusone - - - - - scm:git:https://gitea.zhouxy.xyz/plusone/plusone-validator.git - scm:git:ssh://gitea.zhouxy.xyz/plusone/plusone-validator.git - https://gitea.zhouxy.xyz/plusone/plusone-validator - - xyz.zhouxy.plusone diff --git a/pom.xml b/pom.xml index 79a7c7b..416b2bb 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ xyz.zhouxy.plusone plusone-validator-parent - 1.0.0-SNAPSHOT + 1.0.0-RC4 plusone-validator-parent https://gitea.zhouxy.xyz/plusone/plusone-validator @@ -47,7 +47,7 @@ 1.8 1.8 - 1.1.0-SNAPSHOT + 1.1.0-RC2 @@ -68,49 +68,68 @@ - - - - - - maven-clean-plugin - 3.1.0 - - - - maven-resources-plugin - 3.0.2 - - - maven-compiler-plugin - 3.8.0 - - - maven-surefire-plugin - 2.22.1 - - - maven-jar-plugin - 3.0.2 - - - maven-install-plugin - 2.5.2 - - - maven-deploy-plugin - 2.8.2 - - - - maven-site-plugin - 3.7.1 - - - maven-project-info-reports-plugin - 3.0.0 - - - + + + + org.codehaus.mojo + flatten-maven-plugin + 1.6.0 + + + + oss + + + + + flatten + process-resources + + flatten + + + + + flatten.clean + clean + + clean + + + + + + + + + release + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + + + + org.sonatype.central + central-publishing-maven-plugin + true + + central + + + + + +