[java-parent-project-v3] 03/09: Add ability to specify repository when downloading signatures.

Tom Zeller tzeller at dragonacea.biz
Sat Nov 14 02:45:46 EST 2015


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch master
in repository java-parent-project-v3.

commit 6eb0567d4a304a1344f2f76c7b5f297fe18c851b
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Fri Nov 13 13:40:23 2015 -0600

    Add ability to specify repository when downloading signatures.
---
 bin/upload-nexus-dependencies.sh | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/bin/upload-nexus-dependencies.sh b/bin/upload-nexus-dependencies.sh
index 50502ba..7883160 100755
--- a/bin/upload-nexus-dependencies.sh
+++ b/bin/upload-nexus-dependencies.sh
@@ -181,8 +181,14 @@ $ECHO ""
 
 ask y "Download signatures" DOWNLOAD_SIGNATURES
 if [ $DOWNLOAD_SIGNATURES == "y" ] ; then
-    $ECHO "$FIND * -type f -exec $CURL -v -f -o {}.asc http://repo1.maven.org/maven2/{}.asc 2>&1 \; | grep 'GET\|HTTP'"
-    $FIND * -type f -exec $CURL -v -f -o {}.asc http://repo1.maven.org/maven2/{}.asc 2>&1 \; | grep 'GET\|HTTP'
+    $ECHO " Signatures are downloaded using cURL from Maven Central by default."
+    $ECHO " An alternative repository may be provided, for example, http://repo.spring.io/snapshot."
+    DEFAULT_DOWNLOAD_ASC_URL="http://repo1.maven.org/maven2"
+    ask $DEFAULT_DOWNLOAD_ASC_URL " Download signatures from  ?" DOWNLOAD_ASC_URL
+    $ECHO " DOWNLOAD_ASC_URL is : $DOWNLOAD_ASC_URL"
+    $ECHO ""
+    $ECHO "$FIND * -type f -exec $CURL -v -f -o {}.asc $DOWNLOAD_ASC_URL/maven2/{}.asc 2>&1 \; | grep 'GET\|HTTP'"
+    $FIND * -type f -exec $CURL -v -f -o {}.asc $DOWNLOAD_ASC_URL/{}.asc 2>&1 \; | grep 'GET\|HTTP'
  
 fi
 $ECHO ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list