Repository navigation
Releases
Entity Model Generator v1.2.3
🚀 Entity Model Generator v1.2.3
EMG 1.2.3 是继 v1.2.2 之后的兼容性修复版本,也是首个通过 GitHub Packages 正式分发 Maven 构件的版本。
📦 Maven 软件包分发
Group ID:io.github.forgottenlab.emg
| Artifact ID | Version | 用途 |
|---|---|---|
| entity-model-generator | 1.2.3 | 父 POM |
| emg-annotations | 1.2.3 | 公开注解 |
| emg-core | 1.2.3 | 内部核心组件 |
| emg-processor | 1.2.3 | 编译期注解处理器 |
消费者只需显式配置 emg-annotations 和 emg-processor,其余内部构件由 Maven 自动解析。
Maven 仓库地址:
https://maven.pkg.github.com/forgottenlab/entity-model-generator
在 pom.xml 中配置 Maven 仓库:
<repositories>
<repository>
<id>emg-github</id>
<url>https://maven.pkg.github.com/forgottenlab/entity-model-generator</url>
</repository>
</repositories>在 Maven settings.xml 的 servers 中配置对应的认证信息:
<server>
<id>emg-github</id>
<username>${env.EMG_PACKAGES_USER}</username>
<password>${env.EMG_PACKAGES_READ_TOKEN}</password>
</server>下载需要 GitHub 用户名和具有 read:packages 权限的 Classic PAT,即使软件包为 Public。请通过环境变量提供凭据,不要将实际 Token 写入项目文件。
消费者配置参考:
🐛 问题修复
- 修复 Windows 文件 URI 大小写差异及长短路径名导致的增量编译 View 归属识别问题。
- 保留过期 schema、外部类型冲突及生成源码归属检查。
🔧 工程改进
- 建立 Ubuntu、Windows 与 JDK 17、21 的兼容性测试矩阵。
- 建立带有版本、标签、CI 和库存检查的 Maven 发布工作流。
- 保持公开注解与编译期处理器的独立依赖边界。
🧪 验证
- Java 17 编译目标。
- Ubuntu 和 Windows 上的 Temurin 17、21 CI 全部通过。
- 每组 CI 通过 84 项 Processor 测试,其中包含 22 项增量回归。
- JDK 17、21 本地 staging 验证通过。
- 七个远程 Maven 构件认证下载及完整性验证通过。
- 双 JDK 下的六组独立远程消费者编译全部通过。
验证记录:
📋 校验与限制
SHA256SUMS.txt 记录实际从 GitHub Packages 下载的四个 POM 和三个 JAR 的 SHA-256。
Maven 构件通过 GitHub Packages 分发,本 Release 不重复提供独立 JAR 安装包。
本版本未宣称 Maven Central 分发或 Java 25 兼容性。Lingxi 正式构件集成回归将在后续单独进行。
项目采用 Apache License 2.0。
English Summary
EMG 1.2.3 is a backward-compatible maintenance release and the first version distributed through GitHub Packages.
It fixes incremental View ownership recovery on Windows and retains the existing schema and provenance checks.
The Java 17 compilation target remains unchanged. CI passed on Ubuntu and Windows with Temurin 17 and 21. All six isolated remote consumer builds passed on JDK 17 and 21.
Consumers configure emg-annotations and emg-processor. Internal Maven dependencies are resolved automatically. GitHub Packages requires authenticated access.
SHA256SUMS.txt contains checksums for all seven remotely downloaded Maven artifacts. Maven Central distribution, Java 25 compatibility, and Lingxi integration acceptance remain outside the verified scope of this release.
v1.2.2 - Incremental Processing Provenance Lifecycle Hardening
Overview
EMG 1.2.2 improves incremental compilation reliability by hardening generated output provenance handling.
This release fixes a lifecycle issue where previously generated Views could be incorrectly treated as external outputs when compiler output directories changed during incremental builds.
概述
EMG 1.2.2 通过增强生成输出 provenance(来源追踪)处理机制,提高了增量编译场景下的可靠性。
本版本修复了一个生命周期问题:当增量编译过程中编译器输出目录发生变化时,已有生成 View 可能被错误识别为外部输出,从而导致不必要的冲突。
Highlights
- Fixed provenance ownership recovery when
CLASS_OUTPUTlifecycle changes. - Improved incremental compilation behavior for generated Views.
- Added regression coverage for generated output provenance lifecycle scenarios.
- Preserved existing safety checks for:
- user-defined type conflicts
- stale generated schema detection
- invalid provenance metadata
主要改进
- 修复
CLASS_OUTPUT生命周期变化时 generated output provenance 所有权恢复问题。 - 改进生成 View 在增量编译场景下的处理行为。
- 增加生成输出 provenance 生命周期相关回归测试。
- 保留已有安全检查机制:
- 用户自定义类型冲突检测
- 过期生成 schema 检测
- 无效 provenance 元数据检测
Validation
Verified with:
- Focused incremental compilation tests: 19/19 passed
- EMG Processor tests: 81/81 passed
- Full Maven reactor
clean test: passed
验证
已完成以下验证:
- 增量编译专项测试:19/19 通过
- EMG Processor 测试:81/81 通过
- 完整 Maven Reactor
clean test:通过
Upgrade Notes
Existing projects upgrading from earlier versions may require one clean rebuild if generated outputs were created without provenance metadata.
Run:
mvn clean compilev1.2.1 - Incremental Processing Provenance
EMG 1.2.1
Highlights
- Improved incremental annotation processing safety.
- Added generated output provenance tracking.
- Added integration fixtures for real consumer validation.
修复与改进
- 增强增量 Annotation Processing 安全性。
- 增加生成代码 provenance(来源追踪)机制。
- 增加真实消费者集成测试。
Fixed
- Avoid unsafe reuse of stale generated views.
- Provide diagnostics when generated schema becomes outdated.
修复
- 避免错误复用过期生成 View。
- 当生成结构与当前 Schema 不一致时提供明确诊断。
Compatibility
- No public annotation API breaking changes.
- Existing 1.2.0 generated outputs require one clean regeneration.
兼容性
- 无公开 Annotation API 破坏性修改。
- 已存在的 1.2.0 生成代码需要一次 clean regeneration。