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 692e8ca2da5e9053006f51b64adc1d96d703467d Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Mon Jun 29 23:18:49 2026 +0200 Fix #322: Ensure all file paths passed to GPG use consistent handling Use setValue(homeDir.getAbsolutePath()) instead of setFile(homeDir) to avoid path conversion issues --- src/main/java/org/apache/maven/plugins/gpg/GpgSigner.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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..5554e1b 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"))) { @@ -176,9 +176,9 @@ public class GpgSigner extends AbstractGpgSigner { } cmd.createArg().setValue("--output"); - cmd.createArg().setFile(signature); + cmd.createArg().setValue(signature.getAbsolutePath()); - cmd.createArg().setFile(file); + cmd.createArg().setValue(file.getAbsolutePath()); // ---------------------------------------------------------------------------- // Execute the command line
