private void loadGpgPassphrase()

in src/main/java/org/apache/maven/plugins/gpg/AbstractGpgMojo.java [203:217]


    private void loadGpgPassphrase() throws MojoFailureException {
        if (StringUtils.isEmpty(this.passphrase)) {
            Server server = this.settings.getServer(passphraseServerId);

            if (server != null) {
                if (server.getPassphrase() != null) {
                    try {
                        this.passphrase = securityDispatcher.decrypt(server.getPassphrase());
                    } catch (SecDispatcherException e) {
                        throw new MojoFailureException("Unable to decrypt gpg passphrase", e);
                    }
                }
            }
        }
    }