You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Simone Tripodi <si...@gmail.com> on 2010/09/10 18:30:48 UTC

maven-gpg-plugin blocked during the execution

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-gpg-plugin blocked during the execution

Posted by Simone Tripodi <si...@gmail.com>.
Hi Marshall,
thanks a lot for your hints, very appreciated!
Have a nice day,
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Fri, Sep 10, 2010 at 9:41 PM, Marshall Schor <ms...@schor.com> wrote:
>  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
>> <ka...@gmail.com> 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
>>> <si...@gmail.com> 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: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-gpg-plugin blocked during the execution

Posted by Marshall Schor <ms...@schor.com>.
 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
> <ka...@gmail.com> 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
>> <si...@gmail.com> 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: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>

Re: maven-gpg-plugin blocked during the execution

Posted by Simone Tripodi <si...@gmail.com>.
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
<ka...@gmail.com> 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
> <si...@gmail.com> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-gpg-plugin blocked during the execution

Posted by Kalle Korhonen <ka...@gmail.com>.
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
<si...@gmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org