Skip to content

fix: 脱离已失效的 jeebiz-boot-parent,修复 CI 全矩阵构建(JDK 8/17/21) - #35

Merged
loong10k merged 2 commits into
mainfrom
fix/ci-parent-pom
Aug 13, 2026
Merged

fix: 脱离已失效的 jeebiz-boot-parent,修复 CI 全矩阵构建(JDK 8/17/21)#35
loong10k merged 2 commits into
mainfrom
fix/ci-parent-pom

Conversation

@loong10k

Copy link
Copy Markdown
Collaborator

问题

main 分支 CI 自添加以来从未通过,根因:

  1. 根 pom 继承的 net.jeebiz:jeebiz-boot-parent:1.0.2-SNAPSHOT 已从所有仓库消失(Central 无此构件、jeebiz 私服不可达),POM 无法解析
  2. 子模块声明的 parent groupId(io.github.hiwepy)与根 pom(io.github.easy4j)不匹配
  3. 多个 pom 存在嵌套 XML 注释等非法语法
  4. pf4j 示例编译级别为 Java 6/7(JDK 21+ 不再支持)
  5. ro.fortsoft.pf4j:1.3.0(2015 年)的注解处理器与 JDK 9+ 不兼容

修复

  • 根 pom 移除失效 parent,内联 Spring Boot 1.5.22 BOM(与示例使用的 Spring 4.3.x 一致)与基础编译属性
  • 28 个子模块 parent groupId 统一为 io.github.easy4j
  • 修复 swagger2 / pf4j-plugin-sample / pf4j2-plugin-sample 的嵌套注释非法 XML
  • swagger2 补充 springfox/swagger-core 版本管理;swagger2markup/asciidoctor 文档插件默认跳过(需要应用在线),新增 docs profile 启用
  • pf4j 示例编译级别 → 1.8;pf4j v1 impl 模块禁用古董注解处理器,改为静态维护 META-INF/extensions.idx
  • pf4j2-plugin-test 移除未使用且不可解析的 import
  • 默认 reactor 只保留可从公共仓库构建的模块;依赖未发布构件(io.github.hiwepy:* starter、com.oracle:ojdbc6 等)的 15 个模块移入 legacy-samples profile(mvn -P legacy-samples clean verify 可启用)

本地验证

mvn clean verify 全 14 模块在 JDK 8 / 17 / 21 / 26 下全部 BUILD SUCCESS ✅

关联

- 根 pom 移除已从仓库消失的 net.jeebiz:jeebiz-boot-parent:1.0.2-SNAPSHOT,
  改为独立 pom + 内联 Spring Boot 1.5.22 BOM 与基础编译属性
- 子模块 parent groupId 统一 io.github.hiwepy → io.github.easy4j(28 个 pom)
- 修复 swagger2/pf4j-plugin-sample 等 pom 中的嵌套 XML 注释非法语法
- swagger2 补充 springfox/swagger-core 版本管理;文档生成插件默认跳过,
  新增 docs profile 按需启用
- pf4j 示例编译级别 1.6/1.7 → 1.8(JDK 21+ 不再支持 7)
- ro.fortsoft.pf4j 1.3.0 注解处理器与 JDK 9+ 不兼容:impl 模块禁用注解
  处理,改为静态维护 META-INF/extensions.idx
- pf4j2-plugin-test 移除未使用且不可解析的 import
- 默认 reactor 仅保留可从公共仓库构建的示例,其余依赖未发布构件
  (io.github.hiwepy:* starter、com.oracle:ojdbc6 等)的模块移入
  legacy-samples profile
- swagger2markup 工程依赖与 swagger2markup/asciidoctor 插件整体移入
  docs profile,默认构建不再解析 jcenter 时代的死构件
  (nl.jworks.markdown_to_asciidoc、ch.netzwerg:paleo-core)
- DemoApplicationTests 中依赖 swagger2markup 的演示方法/imports 注释掉,
  保留代码供 docs profile 参考使用
@loong10k
loong10k merged commit 61e97af into main Aug 13, 2026
3 checks passed
@loong10k
loong10k deleted the fix/ci-parent-pom branch August 13, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant