ssw 6c74c3e6aa fix(BS-New-2): codegen pom 自动补依赖 + modelVersion + 正确版本
BS-New-2: dacli form codegen --multi-module-pom 生成的 pom 不完整,
导致 mvn package 失败. 4 个修复:

1. modelVersion 缺失: pom template 缺 <modelVersion>4.0.0</modelVersion>
   → mvn 报 'modelVersion is missing'
   → 修: 4 个 pom template 都加 modelVersion + xsi:schemaLocation

2. biz pom 缺 JNPF 平台依赖: 生成的 Service 引用 UserEntity/GeneraterSwapUtil
   /QueryAllModel, 但 biz pom 没声明 jnpf-permission-entity/jnpf-generater-base
   → mvn 报 'package jnpf.permission.entity does not exist'
   → 修: biz pom 默认加这 2 个 dep

3. dep version 缺失: 4 个 pom template 的 dep 都没 <version>
   → mvn 报 'dependencies.dependency.version is missing'
   → 修: 内部 com.jnpf:* dep 用 ${project.version}, 第三方 (fastjson/commons-lang3)
     用硬编码版本

4. fastjson 版本错: 用 ${project.version} 解析为 6.2.0-RELEASE 但 fastjson 实际
   版本不是 → mvn 报 'Could not find artifact fastjson:jar:6.2.0-RELEASE'
   → 修: fastjson = 1.2.83 (实际版本)

测试场 (testspace) 验证:
  ssw-testspace-entity: SUCCESS (3.241s)
  ssw-testspace-biz: SUCCESS (0.315s)  ← BS-New-2 关键验证点
  ssw-testspace-controller: SUCCESS (0.214s)
  BUILD SUCCESS 4.318s

jxcj 2026-06-30 实战教训
2026-06-30 19:03:24 +08:00
S
Description
dacli CLI — JNPF 平台 AI 驱动开发工具 (TS 版 v0.7)
3.9 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 99.4%
Shell 0.4%
Python 0.2%