You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by Michelle Caisse <mc...@sonic.net> on 2013/06/25 05:13:49 UTC
gpg help, please
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
Posted by Michelle Caisse <mc...@sonic.net>.
Thanks for the replies. I think I didn't provide enough information.
When I run mvn clean install -Papache-release, it prompts me for my gpg
passphrase and I enter it on the command line, where it is masked. After
that it gives the error. I think the problem is that, after 5 years and
several computer and OS upgrades, I've lost my private key. I will need
to create a new key.
-- Michelle
On 6/24/2013 9:12 PM, Andy Jefferson wrote:
>> 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>
> <id>development</id>
> <properties>
> <gpg.passphrase>YOURPASSPHRASE</gpg.passphrase>
> </properties>
> </profile>
> </profiles>
> <activeProfiles>
> <activeProfile>development</activeProfile>
> </activeProfiles>
>
> and so I never have to enter the passphrase at release. HTH
>
Re: gpg help, please
Posted by Andy Jefferson <an...@datanucleus.org>.
> 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>
<id>development</id>
<properties>
<gpg.passphrase>YOURPASSPHRASE</gpg.passphrase>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>development</activeProfile>
</activeProfiles>
and so I never have to enter the passphrase at release. HTH
--
Andy
DataNucleus (Web: http://www.datanucleus.org Twitter: @datanucleus)
Re: gpg help, please
Posted by Craig L Russell <cr...@oracle.com>.
Hi Michelle,
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.
Craig
On Jun 24, 2013, at 8:13 PM, Michelle Caisse wrote:
> 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
Craig L Russell
Architect, Oracle
http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell@oracle.com
P.S. A good JDO? O, Gasp!