Skip to content

infra(ci): use maven wrapper instead of mvnd on Windows to avoid daemon crash#6436

Merged
Aias00 merged 1 commit into
apache:masterfrom
Duansg:ci/disable-mvnd-windows
Jul 21, 2026
Merged

infra(ci): use maven wrapper instead of mvnd on Windows to avoid daemon crash#6436
Aias00 merged 1 commit into
apache:masterfrom
Duansg:ci/disable-mvnd-windows

Conversation

@Duansg

@Duansg Duansg commented Jul 20, 2026

Copy link
Copy Markdown
Member

What

On the Windows leg of the ci workflow, build with ./mvnw.cmd instead of mvnd. mvnd is no longer installed or run on Windows; Linux legs are unchanged.

Why

After #6435 merged, build (17, windows-latest) failed in "Build with Maven":

 java.nio.charset.MalformedInputException: Input length = 1
        at org.mvndaemon.mvnd.client.DaemonDiagnostics.tail(...)

The mvnd daemon (mvnd 1.0.2 / bundled JDK 22) dies mid-build; the client then reads a non-UTF-8 daemon log with the platform charset and throws, masking the real error. It reproduces reliably on Windows (non-UTF-8 default charset) while Linux passes, and the mvnd --version guard can't catch it since the daemon dies during the build, not at startup. Skipping mvnd on Windows removes the path.

Not caused by #6435 — that PR only refactored paths-filter and touched no build command. Pre-existing Windows/mvnd flake.

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

@Duansg
Duansg force-pushed the ci/disable-mvnd-windows branch from 1276feb to 29facd1 Compare July 20, 2026 15:45
@Aias00
Aias00 merged commit 292b73b into apache:master Jul 21, 2026
38 checks passed
@Duansg
Duansg deleted the ci/disable-mvnd-windows branch July 21, 2026 01:48
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.

2 participants