You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(tomcat): Web Facet 识别、WAR/Exploded 部署与 Java 调试集成 - #1
为 Lithe-IDEA 新增独立 Tomcat 插件,覆盖传统 JavaEE Web 项目从 Web Facet 识别、构建产物选择到 Tomcat 启停、部署和调试的基本开发流程。不在宿主/Core 加 Tomcat 名称特判;Java 项目结构中的 SDK、源码根、库、依赖仍由已有的 Java Support 负责。
本次实现
Web 模块 / Facet:只读识别 Maven/Gradle Web 目录、Eclipse WTP 的 .settings Web Facet/组件文件,以及 IntelliJ IDEA .iml Web Facet;列出 WAR 与 Exploded 候选产物。仅扫描工作区及一级模块,不读取 IDEA 用户全局库,也不写工程文件。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目标
为 Lithe-IDEA 新增独立 Tomcat 插件,覆盖传统 JavaEE Web 项目从 Web Facet 识别、构建产物选择到 Tomcat 启停、部署和调试的基本开发流程。不在宿主/Core 加 Tomcat 名称特判;Java 项目结构中的 SDK、源码根、库、依赖仍由已有的 Java Support 负责。
本次实现
.settingsWeb Facet/组件文件,以及 IntelliJ IDEA.imlWeb Facet;列出 WAR 与 Exploded 候选产物。仅扫描工作区及一级模块,不读取 IDEA 用户全局库,也不写工程文件。server.xml中 HostappBase、autoDeploy、HTTP 端口;复用 Lithe 所选java工具和 Host Run 生命周期启动/停止,独立 argv 不走 shell。127.0.0.1绑定的 JDWP 监听启动,使用run/start.debug的公共java适配器别名和 connection port 交给 Lithe 附加(不复制 Java Debug 实现)。autoDeploy=true且当前 Run 由本插件管理时,检测稳定的 WAR 变化并自动重部署。目标被外部改动则停止监控,不强制覆盖。README.md、TEST_RESULTS.md。本地验证(Linux x64 容器)
go vet ./...:通过go test -race -count=1 ./...:通过,含后端协议、真实 Java 21 Bootstrap 合成 fixture、一键调试参数、Web Facet、WAR/Exploded、自动部署和冲突拒绝node --check ui/app.js:通过python3 scripts/package.py --all:Linux x64/ARM64、macOS arm64/x64、Windows x64 交叉编译及 deterministic ZIP / SHA-256 校验通过python3 -m unittest discover -s scripts -p 'test_*.py' -v:5 项通过,含真实 Linux 后端协议握手与 Chromium WebBridge 模拟界面。模拟界面不是 Lithe 原生窗口。界面截图(浏览器模拟,非原生 Lithe 截图)
合入前仍需验收
autoDeploy行为;当前执行环境无法取得 Tomcat 分发包,尚未验证。明确不在本 PR 范围:JSP/EL 语言服务器、自动执行任意 Maven/Gradle/Ant 构建、IDEA 全局库、编辑
.classpath/.iml、JPA/CDI/JSF、Tomcat Manager 凭据。SDK/依赖配置由 Java 插件现有“项目结构”页面提供,避免两份类路径模型。当前保持 Draft,不合并/不发布稳定版本,直到真实 Tomcat + 原生宿主回归通过。