Issue Details (XML | Word | Printable)

Key: MGPG-9
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Alex Karasulu
Votes: 6
Watchers: 7
Operations

If you were logged in you would be able to see more operations.
Maven 2.x GPG Plugin

gpg plugin hangs when it should prompt for the secret key passphrase hangs

Created: 24/May/07 01:15 AM   Updated: 14/Mar/10 09:24 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Maven 2.0.6, JDK 1.5.0_11, Linux 2.6.x
Issue Links:
dependent
 


 Description  « Hide

When used in conjunction with the release plugin the release:perform command hangs when it should prompt for the secret key passphrase. Interestingly enough when I put the passphrase into the settings.xml file the plugin does not hang. I suspect the prompt is failing to show up.



Christophe Lallement added a comment - 01/Aug/09 05:09 AM

Hi,
it's the same thing with mvn:prepare (passprase pass as property) but it seems gpg wait for a pass phrase without prompting.

tested with maven 2.2.0.


Christophe Lallement added a comment - 01/Aug/09 05:34 AM

I find a workaround:

it seems that mvn:release fork the maven command and additionnal args are not passed to the new command.
just add this option on commande line:

> mvn -Dgpg.passphrase="xxxxxxx" -Darguments="-Dgpg.passphrase=xxxxxxxxx" release:perform

it works fine for me (same tips for mvn:perform)

Regards
Christophe


Johan Walles added a comment - 14/Mar/10 09:23 AM - edited

MRELEASE-424 has a workaround for this that doesn't require you to store your pass phrases in files.

Add this to the release plugin configuration:

<mavenExecutorId>forked-path</mavenExecutorId>

I tried it and it works. Cred to Benjamin Bentmann.