gpg help, please

2013-06-24 Thread Michelle Caisse
Following the instructions at 
http://www.apache.org/dev/publishing-maven-artifacts.html, I have 
downloaded gnupg and run


   mvn clean install -Papache-release

I get a gpg error:

   gpg: no default secret key: No secret key
   gpg: signing failed: No secret key


How do I configure gpg or point it to a default secret key, or whatever?

Thanks,
Michelle


Re: gpg help, please

2013-06-24 Thread Andy Jefferson
 I haven't tried this particular profile. The only thing I can think of is
 that you need to have some other command line parameter to allow maven to
 get your private (key) password.
 
 You cannot pass your password on the command line because anyone who does
 ps-ef can see your password in the plain. So it has to be some file or you
 type it into the maven command.
 
 It may be that you need to configure the nexus repository to do this.

I use the Maven release plugin to release DataNucleus and following the 
Sonatype guide(s) I ended up editing the users .m2/settings.xml with 
(something like)

profiles
profile
iddevelopment/id
properties
gpg.passphraseYOURPASSPHRASE/gpg.passphrase
/properties
/profile
/profiles
activeProfiles
activeProfiledevelopment/activeProfile
/activeProfiles

and so I never have to enter the passphrase at release. HTH

-- 
Andy
DataNucleus (Web: http://www.datanucleus.org   Twitter: @datanucleus)