You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2016/02/01 18:50:31 UTC

[34/50] [abbrv] brooklyn-server git commit: Update pom.xml GnuPG settings

Update pom.xml GnuPG settings

Sets the executable to gpg2, which is the usual name for the latest gpg
versions both on Linux and MacPorts.

Removes the set-empty-passphrase property. With gpg-agent correctly set
up, this means that the signing process will prompt for the GPG
passphrase when it is first needed, and cache the value for the
remainder of the build. This is more secure than writing down a GPG
passphrase either in settings.xml, pom.xml, or anywhere where it might
up in a command line history file.

Setting up gpg-agent in 10 seconds:

- Install a pinentry package. pinentry-mac from MacPorts;
  pinentry-curses if you are remoting into a Linux machine
- Install gpg-agent if not already installed (on Ubuntu you'll need to
  apt-get install gnupg-agent; but on MacPorts it's part of the gnupg2
  package)
- Start the agent:
  - gpg-agent --daemon --write-env-file "${HOME}/.gpg-agent-info"
  - GPG_TTY=$(tty)
  - export GPG_AGENT_INFO GPG_TTY


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/6b83a364
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/6b83a364
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/6b83a364

Branch: refs/heads/0.7.0-incubating
Commit: 6b83a364ff07a8198c2529423c5a8dcadcd718c0
Parents: 18c800a
Author: Richard Downer <ri...@apache.org>
Authored: Thu Jun 25 16:39:49 2015 +0100
Committer: Richard Downer <ri...@apache.org>
Committed: Fri Jun 26 13:05:23 2015 +0100

----------------------------------------------------------------------
 pom.xml | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/6b83a364/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 60b8203..e007484 100644
--- a/pom.xml
+++ b/pom.xml
@@ -216,11 +216,6 @@
         <commons-codec.version>1.9</commons-codec.version>
         <log4j.version>1.2.17</log4j.version>
         <commons-logging.version>1.2</commons-logging.version>
-
-        <!-- Release -->
-        <!-- no passphrase by default, so we can do automated deploy builds;
-             you can still supply your own passphrase with -Dgpg.passphrase=XXX -->
-        <gpg.passphrase />
     </properties>
 
     <dependencyManagement>
@@ -711,6 +706,9 @@
                             <goals>
                                 <goal>sign</goal>
                             </goals>
+                            <configuration>
+                                <executable>gpg2</executable>
+                            </configuration>
                         </execution>
                     </executions>
                 </plugin>