From 5920b817ed3203be847da3a29af85378d020e293 Mon Sep 17 00:00:00 2001 From: Weinan Wang Date: Fri, 29 Jun 2018 13:29:57 +0800 Subject: [PATCH] HAWQ-1633. Add parameter for maven package hawq-hadoop --- contrib/hawq-hadoop/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/hawq-hadoop/Makefile b/contrib/hawq-hadoop/Makefile index aa582c5a89..d017a1686d 100644 --- a/contrib/hawq-hadoop/Makefile +++ b/contrib/hawq-hadoop/Makefile @@ -40,7 +40,11 @@ all: $(DEFAULTTARGET) $(DEFAULTTARGET): ifdef MAVEN +ifeq ($(shell java -version 2>&1 | grep 1.7.0 > /dev/null; printf $$?),0) + $(MAVEN) package -DskipTests -Dhttps.protocols=TLSv1.2 +else $(MAVEN) package -DskipTests +endif else @$(missing) mvn $< $@ endif