Files
adminandClaude 646cfeab57 chore: 清理废弃目录 + boot/ 并入本仓库
清理三个目录 (理由见 AGENTS.md §3):
- jnpf-k8s/docker-optional/  早期「每服务打一镜像」方案, §7.1 已列为硬约束
                            「不重打镜像」, 零代码引用
- other/                   compose 时代产物源。datav/ 与 build/web/datav 完全
                            重复; 4 个 jar 已被 build/{workflow,report,xxl,tenant}
                            /app.jar 取代; config/*.yml 有效部分已进 ConfigMap
- boot/.git                摘掉后 boot/ 变普通子目录并入。154 个 commit 已备份
                            到 ~/.cache/testspace-cleanup-20261015/boot-git-backup

根 docker-compose.yml 保留 (5 个镜像的来源记录)。根 Dockerfile 未动 —— 它是
compose 时代的 java+Claude Code 镜像, 与 JNPF 部署无关, 待定。

boot/ 并入 (原 origin gitea:3000 已不可达, 且工作区有大量未提交改动):
把 §6.12 的三处 pom 修复和 §6.13 的两个 SSO 新文件 (SsoBindController /
SsoTokenGranter) 一起纳入版本管理 —— 它们此前只活在工作区, 推不出去。

关掉 §6.12 那个坑: boot/.gitignore 里有一条 resources/, 把
ssw-admin/src/main/resources/ 整个排掉了。于是 application.yml (含 SSO 的
gateway.white-url 白名单) 从来不在版本控制里 —— 重新 clone 一遍白名单就没了,
SSO 入口退回 HTTP 200 + code 600, 而 git status 看不到任何异常, 因为它本来
就该入库却一直被忽略着。现已删除该规则, resources/ 全部 22 个文件入库
(含 ip2region xdb v4 11M + v6 35M, 保证 clone 出来就能 mvn package)。

AGENTS.md: §3 补 boot/ 与清理说明, §6.12 末尾改为「已闭合」并写明别再往
boot/.gitignore 加宽规则, §7.1/§1/§10 去掉 docker-optional 与 other/ 的
失效引用, §9 加一条「clone 后白名单消失」的排查项。

Co-Authored-By: Claude <[email protected]>
2026-10-15 14:39:05 +08:00

52 lines
2.3 KiB
XML
Raw Permalink 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.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.jnpf</groupId>
<artifactId>ssw-boot</artifactId>
<version>7.0.0-RELEASE</version>
</parent>
<packaging>pom</packaging>
<modules>
<module>ssw-common-biz</module>
<module>ssw-common-controller</module>
<module>ssw-common-entity</module>
</modules>
<artifactId>ssw-common</artifactId>
<properties>
<!-- jnpf-dependencies 的 boot3 profile 把 maven.compiler.source 锁在 8,
导致 Java 9+ 语法/API 编译不过(String.isBlank()、var、switch 表达式,
以及 2026-10-15 新增的 Base64.getEncoder().encodeToString(byte[],int,int,Charset))。
JNPF v7 跑在 Spring Boot 3 / JDK 17+,这里抬到 17。
(2026-08-02 首次补,2026-10-15 testspace/boot 这份拷贝漏了,编译报
"Charset 无法转换为 String",从 ssw-mvp/boot/ssw-common/pom.xml 同步过来。) -->
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<!-- v7.0 升级 (2026-07-31): ssw-common-biz/controller 用 @Value / @Autowired / @Service 等 Spring 注解,
父 pom 需显式声明 spring-boot-starter, 否则 transitive chain 拉不到 spring-context.
(6.2 时 boot/jnpf-admin fat jar 间接带入, ssw-* 子模块不需要单独声明.
7.0 改用 full-source 模式, jnpf-* 子模块各自带 spring 注解用到的最小集,
ssw-* 业务模块需自己 declare.) -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>3.5.14</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
</dependencies>
</project>