Skip to content

fix(run): enable Java Debug for Maven applications - #41

Merged
1lck merged 2 commits into
mainfrom
codex/maven-project-discovery
Nov 20, 2026
Merged

1lck merged 2 commits into
mainfrom
codex/maven-project-discovery

Conversation

@1lck

@1lck 1lck commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

关联 Issue / Linked issue

PR 类型 / Type

  • fix

改动说明 / What changes

  • Declare a Java connection debugger for Maven application targets and main classes discovered from Java source.
  • Reuse the saved Maven run configuration and launch plan for a suspended start. The main class, arguments, environment and working directory are preserved. Spring Boot retains its existing service debug plan.
  • Pin the compiler settings test host to the desktop commit that supports the current provider contract and update the screenshot test to pass the language code to the settings renderer.

复现与根因 / Reproduction

Open Gson's RawCollectionsExample.java, run it from Current File, then debug the saved configuration. The old application target had no public debugger binding, and the toolbar reported that its plugin declared no adapter. With the updated manifest and host the same configuration can run and debug.

范围检查 / Scope checks

  • The plugin owns the Maven launch plan and declares the public debugger binding. The host uses the generic provider contract.
  • Requires buildSystems: 2. The pinned Core and desktop test host support it. The regression cases cover source-discovered application plans and existing service launch plans.
  • The fix adds no UI copy, host methods, log event IDs or writable installation paths. The settings test changes only its pinned host and the test driver call.

验证 / Verification

Operation Result
Maven integration tests and local archive packaging Passed
Gson 686fad7, macOS arm64 Current File debug discovered and saved the main class, hit line 43, ran to exit 0, and hit line 43 when debugging the saved configuration
Spring Petclinic 500158f, macOS arm64 Discovered the startup configuration, served HTTP 200, hit line 33, and resolved a project definition
Native compiler settings screenshots Passed locally and on CI. Four screenshots cover Chinese and English in light and dark themes.
Linux arm64 and x64 packaging, Windows tests on Maven 3.6.3 and the runner version Passed in CI run 44799872577

The real-project desktop workflows above were exercised on macOS arm64. Windows coverage is the plugin CI.

@1lck
1lck marked this pull request as ready for review November 20, 2026 18:56
@1lck
1lck merged commit 861701d into main Nov 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant