From 7d6d66b62f0663b4c75a56dee8286a87bcf40de8 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 26 Nov 2026 00:38:29 +0000 Subject: [PATCH] Bump standalone parser artifact to 10.2.6 Central still has immutable cn.qaiu:parser:10.2.5. Advance parserVersion and the dependency snippets so a later manual deploy publishes current parser sources. Leave the app revision at 0.4.13 and do not publish. Co-authored-by: qaiu --- parser/README.md | 22 ++++++++++++++++++---- parser/doc/CUSTOM_PARSER_GUIDE.md | 2 +- parser/doc/CUSTOM_PARSER_QUICKSTART.md | 2 +- pom.xml | 2 +- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/parser/README.md b/parser/README.md index ddae166..de9d58e 100644 --- a/parser/README.md +++ b/parser/README.md @@ -4,26 +4,26 @@ NFD 解析器模块:聚合各类网盘/分享页解析,统一输出文件列 - 语言:Java 17 - 构建:Maven -- 模块版本:10.2.5 +- 模块版本:10.2.6(独立于应用 ``,当前应用版本仍是 0.4.13) ## 依赖(Maven Central) ```xml cn.qaiu parser - 10.2.5 + 10.2.6 ``` - Gradle Groovy DSL: ```groovy dependencies { - implementation 'cn.qaiu:parser:10.2.5' + implementation 'cn.qaiu:parser:10.2.6' } ``` - Gradle Kotlin DSL: ```kotlin dependencies { - implementation("cn.qaiu:parser:10.2.5") + implementation("cn.qaiu:parser:10.2.6") } ``` @@ -56,6 +56,20 @@ mvn -pl parser -am install mvn -pl parser test ``` +## 发布到 Maven Central(手动) + +`cn.qaiu:parser` 不由 `.github/workflows/maven.yml` 发布。该 workflow 只在推送 `v*` tag 时构建 GitHub Release 压缩包和 Docker 镜像。 + +Central 上的 `10.2.5` 已发布,不能覆盖。下一版只发布 `10.2.6`。在仓库根目录执行: + +``` +mvn -pl parser -am clean deploy -DskipTests +``` + +本机需要 JDK 17+、Maven 3.9+、可用于签名的 GPG 私钥,以及 `~/.m2/settings.xml` 中 id 为 `sonatype` 的 Central Portal 用户名和 token。密钥口令放在本机 settings 的 `gpg.passphrase`(插件已使用 `--pinentry-mode loopback`),不要写进仓库,也不要放在命令行参数里。 + +`parser/pom.xml` 已配置 `central-publishing-maven-plugin`(`publishingServerId=sonatype`,`autoPublish=true`)、`maven-gpg-plugin` 和 `flatten-maven-plugin`(`flattenMode=ossrh`)。上面的 `deploy` 会使用打平后的 POM 签名并自动发布,坐标仍是 `cn.qaiu:parser`,许可证 MIT。 + ## 自定义解析器扩展 本模块支持用户自定义解析器扩展。通过简单的配置和注册,你可以添加自己的网盘解析实现: diff --git a/parser/doc/CUSTOM_PARSER_GUIDE.md b/parser/doc/CUSTOM_PARSER_GUIDE.md index ede1900..1fbd72e 100644 --- a/parser/doc/CUSTOM_PARSER_GUIDE.md +++ b/parser/doc/CUSTOM_PARSER_GUIDE.md @@ -28,7 +28,7 @@ cn.qaiu parser - 10.2.5 + 10.2.6 ``` diff --git a/parser/doc/CUSTOM_PARSER_QUICKSTART.md b/parser/doc/CUSTOM_PARSER_QUICKSTART.md index b17d297..411a6c9 100644 --- a/parser/doc/CUSTOM_PARSER_QUICKSTART.md +++ b/parser/doc/CUSTOM_PARSER_QUICKSTART.md @@ -11,7 +11,7 @@ cn.qaiu parser - 10.2.5 + 10.2.6 ``` diff --git a/pom.xml b/pom.xml index 6e1f73d..5f695e4 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ 2.0.16 3.18.0 2.0.0 - 10.2.5 + 10.2.6 2.18.9 1.5.34