Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/`),由它准备运行:
Expand Down
23 changes: 23 additions & 0 deletions docs/releases/v1.0.1.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion extension/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<groupId>io.github.lithe-idea</groupId>
<artifactId>lithe-maven-extension</artifactId>
<!-- Kept equal to plugin.json's version; scripts/package.mjs checks it. -->
<version>1.0.0</version>
<version>1.0.1</version>
<packaging>jar</packaging>
<name>Lithe Maven extension</name>

Expand Down
2 changes: 1 addition & 1 deletion io.github.lithe-idea.maven-build/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
Loading