On Wed, 2014-01-15 at 10:54 -0500, Gary Gregory wrote:
> Next issue: The build hangs in 'gradlew -q deployRC':
> 
> [INFO] --- maven-gpg-plugin:1.4:sign (sign-artifacts) @
> httpcomponents-client ---
> 
> In my gradle.properties I have:
> 
> MAVEN_HOME=C:\\Java\\apache-maven-3.0.5
> 
> HC_DEV = https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk
> HC_DIST_STAGING=https://dist.apache.org/repos/dist/dev/httpcomponents/
> HC_SITE_STAGING=https://svn.apache.org/repos/asf/httpcomponents/site/
> HC_PROJECT_SITE=
> https://svn.apache.org/repos/asf/httpcomponents/project-website/trunk/
> 
> HC_PUBLISHED_RELEASES=
> 
> signing.keyId=***
> signing.password=***
> signing.secretKeyRingFile=%HOME%\\AppData\\Roaming\\gnupg\\secring.gpg
> 
> I also tried each of:
> 
> signing.secretKeyRingFile=%HOME%\AppData\Roaming\gnupg\secring.gpg
> signing.secretKeyRingFile=%HOME%/AppData/Roaming/gnupg/secring.gpg
> 
> I've had this problem before using plain Maven in Apache Commons which I
> solved by using:
> 
> -Darguments=-Dgpg.passphrase=*** -Dgpg.passphrase=***
> 
> For example:
> 
> mvn -Darguments=-Dgpg.passphrase=*** -Dgpg.passphrase=*** deploy -Prelease
> 
> How do I do that with this build system? Yes, I've tried 'gradlew
> -Darguments=-Dgpg.passphrase=*** -Dgpg.passphrase=*** -q deployRC' to no
> avail.
> 
> Gary
> 

Gary

This time around this does not seem to be the release tools fault. The
build is likely hanging in prompt for GPG password. Under Linux the
prompt is visible. Under Windows it is probably not.

What happens if you just type the passphrase?

Could you please use this patch to force-feed the passphrase to Maven?

Oleg  

Index: build.gradle
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- build.gradle	(date 1389705856000)
+++ build.gradle	(revision )
@@ -247,7 +247,8 @@
                 String name = getProductName(artifactId)
 
                 println "Deploying ${name} ${releaseVer} based on ${rcQualifier}"
-                mvn.exec(checkoutRC.localDir, 'deploy', '-Prelease', '-Dmaven.test.skip=true')
+                mvn.exec(checkoutRC.localDir, 'deploy', '-Prelease', '-Dmaven.test.skip=true',
+                    '-Dgpg.passphrase=' + project.ext.'signing.password')
             }
         }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to