Files
starRiverProperty/docs/build/ORIGINAL_BUILD_JDK.txt
T
反编译工作区 dee355b4a7 chore: 工作区反编译与 Maven/文档/脚本同步到发布分支
- artifacts/decompiled 树与相关源码变更
- maven-cw-elevator-application 业务 docs 与 package-info
- scripts 下 formatter 校验与辅助脚本
- 其他子工程/接口与发布线一并纳入版本控制

Made-with: Cursor

Former-commit-id: e102e8cab64e575bcd23c9a66a598aa1892bb492
2026-04-25 09:35:35 +08:00

30 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
原始运行包 / 官方构件体现的 Java 版本:Java 81.8
【与当前源码坐标区分】本仓库内可编辑的 Maven 工程已做**主版本号升级**(如电梯 common 现为 **2.0-SNAPSHOT**、
cloudwalk-common-event 现为 **4.0.0-Brussels-SRX** 等,见 docs/architecture/Maven工作区子工程版本一览.md)。
下文物证中的 **JAR 文件名** 仍指历史运行包 `cw-elevator-application-V1.0.0.20211103/lib/`**不代表**当前 `pom.xml` 坐标。
依据(摘录自本工作区内文件,便于审计):
1) cw-elevator-application-V1.0.0.20211103
- META-INF/MANIFEST.MFBuild-Jdk: 1.8.0_144
- META-INF/maven/.../cw-elevator-application-starter/pom.xml
maven.compiler.source=8maven.compiler.target=8
2) cw-elevator-application-V1.0.0.20211103/lib/cw-elevator-application-common-1.0-SNAPSHOT.jar
- META-INF/MANIFEST.MFBuild-Jdk: 1.8.0_144
3) cw-elevator-application-V1.0.0.20211103/lib/cloudwalk-common-event-3.7.2-Brussels-SRX.jar
- META-INF/MANIFEST.MFBuild-Jdk: 1.8.0_191
4) 源码归档路径 artifacts/decompiled/trees/ninca-crk-std-backend-V2.9.1_20210630.jar.src/META-INF/maven/.../pom.xml
- maven.compiler.source=1.8maven.compiler.target=1.8
结论:五个聚合 Maven 工程应与上述一致,使用 JDK 8 作为运行 Maven 的 JVMJAVA_HOME 指向 1.8.x),
字节码目标为 1.8。各聚合父 POM 已配置 maven-enforcer-plugin,要求 [1.8,1.9),避免误用 JDK 11+ 仅当“编译目标 8”导致注解处理器等问题。
【formatter-maven-plugin 与 JDK】父 POM 中若声明 net.revelc.formatter:formatter-maven-plugin:2.24.x
在 JDK 8 下会无法加载 Mojo(插件字节码为 class file 55+,需较新 JVM 运行**插件本身**)。
在 Java 8 上跑 `formatter:validate` / `formatter:format` 时,请用 **2.16.0**(与 scripts/check_maven_formatter_validate.sh 一致),
或仅在使用 JDK 17+ 的 Maven 进程里再使用 2.24+。