This is an automated email from the ASF dual-hosted git repository.
ppkarwasz pushed a commit to branch gha/v0
in repository https://gitbox.apache.org/repos/asf/logging-parent.git
The following commit(s) were added to refs/heads/gha/v0 by this push:
new 4b5cd9b Pass a native Windows path in MAVEN_BASEDIR to Maven builds
(#504)
4b5cd9b is described below
commit 4b5cd9becd99a8f852c6597974823194ab68cdca
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Thu Aug 13 10:44:06 2026 +0200
Pass a native Windows path in MAVEN_BASEDIR to Maven builds (#504)
* Pass a native Windows path in `MAVEN_BASEDIR` to Maven builds
Under `shell: bash` on Windows runners, MSYS2 rewrites the POSIX path
computed by `bin/mvn` into the mixed `D:/...` form, which breaks
plugins that handle paths as strings (e.g. Apache RAT 0.17-0.18).
Providing `MAVEN_BASEDIR` short-circuits the computation, so
`maven.multiModuleProjectDirectory` keeps its native form.
Remove when https://github.com/apache/maven/issues/12537 is resolved.
Assisted-By: Claude Fable 5 <[email protected]>
* Set `MAVEN_BASEDIR` also in `verify-reproducibility-reusable.yaml`
Assisted-By: Claude Fable 5 <[email protected]>
---
.github/workflows/build-reusable.yaml | 3 +++
.github/workflows/verify-reproducibility-reusable.yaml | 3 +++
2 files changed, 6 insertions(+)
diff --git a/.github/workflows/build-reusable.yaml
b/.github/workflows/build-reusable.yaml
index d90aee0..a80f728 100644
--- a/.github/workflows/build-reusable.yaml
+++ b/.github/workflows/build-reusable.yaml
@@ -60,6 +60,9 @@ on:
env:
MAVEN_ARGS: ${{ inputs.maven-args }}
+ # Keep `maven.multiModuleProjectDirectory` a native Windows path under
`shell: bash`,
+ # See https://github.com/apache/maven/issues/12537 for context.
+ MAVEN_BASEDIR: ${{ github.workspace }}
# Explicitly drop all permissions inherited from the caller for security.
# Reference:
https://docs.github.com/en/actions/sharing-automations/reusing-workflows#access-and-permissions
diff --git a/.github/workflows/verify-reproducibility-reusable.yaml
b/.github/workflows/verify-reproducibility-reusable.yaml
index 77f3dc8..6536bea 100644
--- a/.github/workflows/verify-reproducibility-reusable.yaml
+++ b/.github/workflows/verify-reproducibility-reusable.yaml
@@ -44,6 +44,9 @@ on:
env:
MAVEN_ARGS: ${{ inputs.maven-args }}
+ # Keep `maven.multiModuleProjectDirectory` a native Windows path under
`shell: bash`,
+ # See https://github.com/apache/maven/issues/12537 for context.
+ MAVEN_BASEDIR: ${{ github.workspace }}
# Explicitly drop all permissions inherited from the caller for security.
# Reference:
https://docs.github.com/en/actions/sharing-automations/reusing-workflows#access-and-permissions