You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/06/20 12:43:22 UTC

[GitHub] [maven-release] michael-o commented on pull request #125: [MRELEASE-1091] Use non-interactive mode for forked Maven process

michael-o commented on PR #125:
URL: https://github.com/apache/maven-release/pull/125#issuecomment-1160402544

   > This change breaks interaction of maven-gpg-plugin with Gpg4win Kleopatra. Before this change, when gpg-plugin runs, it triggered the cert password prompt windows of Kleopatra but now it fails right away with `no pinentry`.
   > 
   > I don't think this effect is by design?
   
   Very good catch. I use Gpg4win Kleopatra as well, but did not move to the new plugin version yet. This is likely the issue:
           if ( !isInteractive )
           {
               cmd.createArg().setValue( "--batch" );
               cmd.createArg().setValue( "--no-tty" );
   
   
               if ( null == passphrase && gpgVersion.isAtLeast( GpgVersion.parse( "2.1" ) ) )
               {
                   // prevent GPG from spawning input prompts in Maven non-interactive mode
                   cmd.createArg().setValue( "--pinentry-mode" );
                   cmd.createArg().setValue( "error" );
               }
           }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org