From 29dbc4f054eacb56bbae6ebc2918c3fc3be06e51 Mon Sep 17 00:00:00 2001 From: lick <2188718831@qq.com> Date: Tue, 17 Nov 2026 19:41:07 -0800 Subject: [PATCH] release: Maven 1.0.1 Co-Authored-By: Claude Opus 5.5 --- README.md | 3 +-- docs/releases/v1.0.1.md | 23 ++++++++++++++++++++ extension/pom.xml | 2 +- io.github.lithe-idea.maven-build/plugin.json | 2 +- 4 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 docs/releases/v1.0.1.md diff --git a/README.md b/README.md index 03196d5..69711ac 100644 --- a/README.md +++ b/README.md @@ -104,8 +104,7 @@ brew install maven | `main` | 入口运行(`entrypoints: true`):标题栏选“当前文件”点运行时,提供者回答当前文件里带 `static void main(String[])` 的类,Lithe 把它存成以类名命名的运行配置后运行;POM 里不用写主类 | 应用 | “当前文件”的入口(`lithe/build/runEntrypoints`)只读这一个文件:模块是文件上方最近一个有 `pom.xml` 的目录,类名是包名加文件名, -测试源码(`src/test/`)不算,因为运行用的运行时类路径里没有测试类。这项需要支持 `buildProviders` 1 的 Lithe 桌面端 -([1lck/Lithe-IDEA#2104](https://github.com/1lck/Lithe-IDEA/issues/2104))。 +测试源码(`src/test/`)不算,因为运行用的运行时类路径里没有测试类。从 1.0.1 起插件需要 Lithe 桌面端 0.8.5 及以上(支持 `buildProviders` 1)。 列 target 只读源码开头和 POM,不编译。运行时 Lithe 启动随包的构建提供者 `lib/lithe-maven-provider.jar` (源码在 `provider/`),由它准备运行: diff --git a/docs/releases/v1.0.1.md b/docs/releases/v1.0.1.md new file mode 100644 index 0000000..0c8fb5d --- /dev/null +++ b/docs/releases/v1.0.1.md @@ -0,0 +1,23 @@ +# Maven 1.0.1 + +## 中文 + +- Spring Boot 应用和在 POM 里写明主类的 Java 应用自动出现在标题栏的运行配置里,可以直接运行。 +- Spring Boot 应用可以调试:点调试后服务以等待调试器的方式启动,Java 调试器自动连上(需要安装 Java Support 插件)。 +- POM 没写主类的 Java 类也能运行:打开带 `main` 方法的类,标题栏选“当前文件”点运行,会编译模块后运行它,并保存为以类名命名的运行配置,之后可以编辑参数。 + +### 兼容性 + +需要 Lithe 桌面端 0.8.5 及以上(宿主需支持 `buildProviders: 1`)。更早的桌面端无法安装此版本,会继续使用 1.0.0;先升级桌面端即可获得新版插件。读取项目工具可能执行项目代码及下载依赖。 + +--- + +## English + +- Spring Boot applications and Java applications whose POM names a main class now appear in the title bar's run configurations and run directly. +- Debug Spring Boot applications: the service starts waiting for a debugger and the Java debugger attaches automatically (requires the Java Support plugin). +- Run a Java class whose main class the POM does not name: open a class with a `main` method, choose Current File in the title bar and press Run. Lithe compiles the module, runs the class and saves it as a run configuration named after the class, whose arguments you can edit. + +### Compatibility + +Requires Lithe desktop 0.8.5 or later (the host must support `buildProviders: 1`). Earlier desktop versions cannot install this version and keep 1.0.0; upgrade the desktop app first to get it. Reading project tools may execute project code and download dependencies. diff --git a/extension/pom.xml b/extension/pom.xml index f058e3c..2d37665 100644 --- a/extension/pom.xml +++ b/extension/pom.xml @@ -15,7 +15,7 @@ io.github.lithe-idea lithe-maven-extension - 1.0.0 + 1.0.1 jar Lithe Maven extension diff --git a/io.github.lithe-idea.maven-build/plugin.json b/io.github.lithe-idea.maven-build/plugin.json index bde5c10..42ff76b 100644 --- a/io.github.lithe-idea.maven-build/plugin.json +++ b/io.github.lithe-idea.maven-build/plugin.json @@ -2,7 +2,7 @@ "schemaVersion": 0, "id": "io.github.lithe-idea.maven-build", "displayName": "Maven", - "version": "1.0.0", + "version": "1.0.1", "pluginAPIVersion": 0, "requires": {"buildSystems": 0, "buildProviders": 1, "projectGenerators": 0, "settings": 0, "backend": 0, "sourceSettings": 0}, "vendor": {"id": "io.github.lithe-idea", "displayName": "Lithe Community", "signatureRequirement": "none"},