diff --git a/scripts/jdbc_maven_deploy.py b/scripts/jdbc_maven_deploy.py
index 1f830226..d4445a3d 100644
--- a/scripts/jdbc_maven_deploy.py
+++ b/scripts/jdbc_maven_deploy.py
@@ -115,8 +115,11 @@ def exec(cmd):
1.6.14
true
- ossrh
- https://oss.sonatype.org/
+ ossrh
+ https://oss.sonatype.org/
+
+ --no-tty
+
@@ -179,7 +182,7 @@ def exec(cmd):
shutil.copyfile(jar, os.path.join(results_dir, os.path.basename(jar)))
print("JARs created, uploading (this can take a while!)")
-deploy_cmd_prefix = 'mvn -Dgpg.passphrase= gpg:sign-and-deploy-file -Durl=%s -DrepositoryId=ossrh' % deploy_url
+deploy_cmd_prefix = 'mvn gpg:sign-and-deploy-file -Durl=%s -DrepositoryId=ossrh' % deploy_url
exec("%s -DpomFile=%s -Dfile=%s" % (deploy_cmd_prefix, pom, binary_jar))
exec("%s -Dclassifier=sources -DpomFile=%s -Dfile=%s" % (deploy_cmd_prefix, pom, sources_jar))
exec("%s -Dclassifier=javadoc -DpomFile=%s -Dfile=%s" % (deploy_cmd_prefix, pom, javadoc_jar))