This is an automated email from the ASF dual-hosted git repository.

ppkarwasz pushed a commit to branch fix/windows-maven-basedir
in repository https://gitbox.apache.org/repos/asf/logging-parent.git

commit 5e63d2534b4e8fcd13224b33b5894a383ce60381
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Fri Jul 24 18:52:12 2026 +0200

    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]>
---
 .github/workflows/build-reusable.yaml | 3 +++
 1 file changed, 3 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

Reply via email to