mvn clean test-compile(opencode 派发结果 + 根因定位)mvn clean test-compile 可以分派给 opencode.iwintrue.com 跑」opencode.iwintrue.com:DNS 解析失败(Non-existent domain),本沙箱彻底不可达(与 #28 R7 一致)。localhost:4091(目录 d:/cfc,agent Sisyphus-Junior)作为替代分派目标,由 opencode agent 执行 mvn -o clean test-compile。opencode 在 localhost:4091 实跑 mvn -o clean test-compile,日志(GBK 解码后)关键行:
[INFO] Compiling 2035 source files to ...\target\classes
[INFO] Compiling 198 source files to ...\target\test-classes
[ERROR] /.../SupplyTeamControllerInviteTest.java:[94,13] 无法访问 com.etotem.cfc.mapper.SupplySystemMapper
错误的类文件: ...\target\classes\com\etotem\cfc\mapper\SupplySystemMapper.class
无法访问文件: ...SupplySystemMapper.class (系统找不到指定的路径。)
[INFO] BUILD FAILURE
第二次执行报错类变为 PaymentControllerTest.java:4 无法访问 ...PaymentController —— 报错类每次不同,是 bug 的非确定性特征(不是测试源码真有错)。
maven-compiler-plugin 3.10.1 的增量编译 bug(useIncrementalCompilation=true 默认值)。
clean 后同一次调用里先 compile 再 testCompile 时,compile 目标一个类都没落盘:实测失败后 target/classes 整个为 0 个 .class(连 SupplySystemMapper、PaymentController 都没写)。testCompile 对所有主类引用全部报"找不到类文件"。mvn -o clean compile(只编译 main)→ BUILD SUCCESS,2226 个主类全部产出,证明主代码 100% 可编译、与业务源码无关。在 cfc-backend/pom.xml 的 maven-compiler-plugin <configuration> 内加一行:
<useIncrementalCompilation>false</useIncrementalCompilation>
重跑 mvn -o clean test-compile → BUILD SUCCESS:主 2226 类 + 测试 234 类全部编译通过。
-Dmaven.compiler.useIncrementalCompilation=false 命令行覆盖无效(该属性不被该版本插件命令行 honored),必须以 pom 配置为准。git checkout cfc-backend/pom.xml 还原,未留任何改动。修复交由研发应用。mvn clean test-compile 失败)= 100% 开发 / 构建侧:一行 pom 配置,与任何测试或业务源码无关。研发直接应用即可。integration/service 类无产物" 是误判:integration/service/(含 impl/)共 30 个文件的 package 声明仍是旧 com.etotem.cfc.service,与物理目录 integration/service/ 不匹配(10-30 重构挪了目录、未改包名)。它们编译后落在 com/etotem.cfc.service/,并非缺失。package 声明,禁止路径推导。surefire 得到真实红数(当前 43 红口径需按正确 FQCN 复核,因部分红类此前被错误排除)。Result.error() 4xx 分型 + 接入最小 CI。@SpringBootTest 上下文测(需 DB)未跑;Playwright / 接口冒烟(9082 DOWN);cfc-langgraph pytest(无 venv);cfc-web jest(未装);JaCoCo(未配);压测 / 依赖扫描(需联网未授权)。