Angelo D. created MGPG-57:
-----------------------------
Summary: passphraseServerId is ignored if a server with id
gpg.passphrase exists
Key: MGPG-57
URL: https://issues.apache.org/jira/browse/MGPG-57
Project: Maven GPG Plugin
Issue Type: Bug
Affects Versions: 1.6
Environment: Linux, maven 3.2.5
Reporter: Angelo D.
Priority: Minor
I have multiple GPG keys in my keyring and I'd like to select a specific one
for signing. Each key has a different passphrase, stored encrypted in my local
settings.xml file.
{code:xml}
<server>
<id>gpg.passphrase</id>
<passphrase>...</passphrase>
</server>
<server>
<id>my.signing.key</id>
<passphrase>...</passphrase>
</server>
{code}
My gpg configuration in the project's pom.xml file hase
{code:xml}
...
<configuration>
<keyname>my.key</keyname>
<passphraseServerId>my.key</passphraseServerId>
</configuration>
...
{code}
If I try to sign my artifacts with this configuration I get an error
{noformat}
[INFO] --- maven-gpg-plugin:1.6:sign (default-cli) @ client ---
gpg: skipped "my.key": bad passphrase
gpg: signing failed: bad passphrase
{noformat}
If I remove the {{gpg.passphrase}} server from the settings everything works
fine.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)