Another approach is to install a version of the underlying gpg which includes support for an agent.
Then, when gpg needs to get your pass phrase, it asks the agent. The agent pops up an interactive window, and gets your pass phrase, right when it needs it. It then keeps it around for a few minutes, in case you're running things which which need lots of signings, so it doesn't bother you for the pass phrase all the time. To activate this capability in your maven settings file, you add <gpg.useagent>true</gpg.useagent> -Marshall Schor On 9/10/2010 1:29 PM, Simone Tripodi wrote: > Hi Kalle, > thanks a lot for your help, very appreciated. > Have a nice day, > Simo > > http://people.apache.org/~simonetripodi/ > http://www.99soft.org/ > > > > On Fri, Sep 10, 2010 at 7:06 PM, Kalle Korhonen > <[email protected]> wrote: >> You need to specify: >> <mavenExecutorId>forked-path</mavenExecutorId> >> in release plugin configuration. See http://jira.codehaus.org/browse/MGPG-9 >> >> Kalle >> >> >> On Fri, Sep 10, 2010 at 9:30 AM, Simone Tripodi >> <[email protected]> wrote: >>> Hi all guys, >>> using the maven-release-plugin and signing artifacts with GnuPG, >>> during the verifying phase, when the gpg-plugin is invoked, the build >>> process is completely stalled. If I don't pass the gpg.passphare I'd >>> expect it would be asked in the prompt, but it doesn't happen :( >>> Follow below my attempts: >>> >>> mvn release:prepare -DdryRun=true -Darguments=-Dgpg.keyname=XXXX\ >>> -Dgpg.passphrase=XXXX >>> mvn release:prepare -DdryRun=true -Dgpg.passphrase=XXXX -PXXX (the >>> keyname is defined as property in the XXX profile) >>> mvn release:prepare -DdryRun=true (tried to insert gpg.passphrase in the >>> prompt) >>> >>> Do you have any idea why? Many thanks in advance, >>> Simo >>> >>> http://people.apache.org/~simonetripodi/ >>> http://www.99soft.org/ >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > >
