Repository navigation
Releases
Releases · Lithe-IDEA/lithe-plugin-tomcat
Tomcat v0.0.1
Tomcat 0.0.1
中文
第一个版本:在 Lithe 里把 Java Web 项目放到你自己安装的 Tomcat 上运行和调试。
新功能
- 识别 Web 模块:Maven
war模块、应用了war插件的 Gradle 模块、Eclipse Dynamic Web Project,以及带WEB-INF/web.xml的普通 Web 目录,每个模块在运行配置里有一项“Run on Tomcat”。 - 一键运行:Maven 和 Gradle 模块先构建再部署,构建输出和 Tomcat 日志都显示在运行窗口;页面地址是
http://localhost:<端口><上下文路径>/。 - 原地运行:Eclipse 项目和普通 Web 目录不打包,直接运行源目录,修改 JSP、HTML 后刷新页面即可看到。
- 调试:选“调试”运行时,Lithe 用 Java Support 插件的 Java 调试器连接 Tomcat,可以在项目代码里下断点。
- 设置:Tomcat 安装目录(留空时用环境变量
CATALINA_HOME)和 HTTP 端口(默认 8080,可按项目覆盖)。 - 不改动你的文件:每个模块使用 Lithe 工作区状态目录里自己的 Tomcat 配置,Tomcat 安装目录、项目和插件包都只读。
使用前准备
- 自己安装 Tomcat 9 或 10.1,并在 设置 → 插件 → Tomcat 中选择安装目录。
- 调试需要另装 Java Support 插件;Java Support 用到的 Eclipse JDT 语言服务器按它的说明安装。
兼容性与已知问题
- 需要支持
buildSystems0、buildProviders0 和settings0 的 Lithe 桌面端;调试需要 0.8.4 及以后的桌面端。 - 0.8.5 及更早的桌面端:打开构建窗口后再修改 Tomcat 设置,要重新打开项目才生效;运行失败时只显示通用错误,看不到插件给出的原因。下一个桌面端版本修复(1lck/Lithe-IDEA#2145)。
- 插件给出的错误提示暂时只有英文,Lithe 还不能把界面语言告诉插件(1lck/Lithe-IDEA#2144)。
- 运行项名称“Run on Tomcat”暂时无法翻译(1lck/Lithe-IDEA#2139)。
English
The first version: run and debug Java Web projects in Lithe on the Tomcat you installed.
New features
- Finds Web modules: Maven
warmodules, Gradle modules that apply thewarplugin, Eclipse Dynamic Web Projects, and plain Web folders withWEB-INF/web.xml; each gets a "Run on Tomcat" run configuration. - One-click run: Maven and Gradle modules are built, then deployed; the build output and Tomcat's log appear in the Run window, and the page is at
http://localhost:<port><context path>/. - Run in place: Eclipse projects and plain Web folders run from their source folders without packaging, so a changed JSP or HTML file shows after a page refresh.
- Debugging: Debug connects the Java debugger of the Java Support plugin to Tomcat, so breakpoints in the project's code stop.
- Settings: the Tomcat installation (the
CATALINA_HOMEenvironment variable when empty) and the HTTP port (8080 by default, can be set per project). - Leaves your files alone: each module runs with its own Tomcat configuration in Lithe's workspace state; the Tomcat installation, the project and the plugin package are only read.
Before you start
- Install Tomcat 9 or 10.1 yourself and choose it in Settings → Plugins → Tomcat.
- Debugging needs the Java Support plugin; install the Eclipse JDT Language Server it uses as its instructions describe.
Compatibility and known issues
- Needs a Lithe desktop that supports
buildSystems0,buildProviders0 andsettings0; debugging needs desktop 0.8.4 or later. - Desktop 0.8.5 and earlier: a Tomcat setting changed after the Build window opened applies only after reopening the project, and a failed run shows a generic error instead of the plugin's reason. Fixed for the next desktop release (1lck/Lithe-IDEA#2145).
- The plugin's error messages are in English for now, because Lithe cannot tell plugins the interface language yet (1lck/Lithe-IDEA#2144).
- The run configuration name "Run on Tomcat" cannot be translated yet (1lck/Lithe-IDEA#2139).
安装:Lithe Store(https://github.com/Lithe-IDEA/Lithe-store)中的 Tomcat 条目合并后,可在 设置 → 插件 → 插件市场 中搜索 Tomcat 并安装。
SHA-256:
tomcat-0.0.1-darwin.zip 88d5e1f829dafc3b5fb6623f1f812feb9cb6dd2b21b480126d72b093a06eef51
tomcat-0.0.1-linux.zip 88d5e1f829dafc3b5fb6623f1f812feb9cb6dd2b21b480126d72b093a06eef51
tomcat-0.0.1-windows.zip 88d5e1f829dafc3b5fb6623f1f812feb9cb6dd2b21b480126d72b093a06eef51