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

slachiewicz pushed a commit to branch fix-build
in repository https://gitbox.apache.org/repos/asf/maven-gpg-plugin.git

commit 39ebf1044c2590349594af32530041a248af9aa8
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Mon Jun 29 23:18:49 2026 +0200

    Fix #322: GPG path broken on Windows builds
    
    Use setValue(homeDir.getAbsolutePath()) instead of setFile(homeDir)
    to avoid path conversion issues in MinGW/MSYS environments on
    GitHub Actions and similar Windows build environments.
---
 src/main/java/org/apache/maven/plugins/gpg/GpgSigner.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugins/gpg/GpgSigner.java 
b/src/main/java/org/apache/maven/plugins/gpg/GpgSigner.java
index d63bd5f..647fda1 100644
--- a/src/main/java/org/apache/maven/plugins/gpg/GpgSigner.java
+++ b/src/main/java/org/apache/maven/plugins/gpg/GpgSigner.java
@@ -84,7 +84,7 @@ public class GpgSigner extends AbstractGpgSigner {
 
         if (homeDir != null) {
             cmd.createArg().setValue("--homedir");
-            cmd.createArg().setFile(homeDir);
+            cmd.createArg().setValue(homeDir.getAbsolutePath());
         }
 
         if (gpgVersion.isBefore(GpgVersion.parse("2.1"))) {

Reply via email to