You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2019/07/18 11:04:28 UTC

[flink] 02/02: [FLINK-12578][build] Add fallback unsafe MapR repository

This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 07ce142259a08eaec2e044c31d5beaa7b19ae6b6
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Thu Jul 18 13:01:11 2019 +0200

    [FLINK-12578][build] Add fallback unsafe MapR repository
---
 flink-filesystems/flink-mapr-fs/pom.xml | 20 ++++++++++++++++++++
 tools/travis_watchdog.sh                |  4 +++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/flink-filesystems/flink-mapr-fs/pom.xml b/flink-filesystems/flink-mapr-fs/pom.xml
index 5238423..e32954c 100644
--- a/flink-filesystems/flink-mapr-fs/pom.xml
+++ b/flink-filesystems/flink-mapr-fs/pom.xml
@@ -41,6 +41,26 @@ under the License.
 		</repository>
 	</repositories>
 
+	<profiles>
+		<profile>
+			<id>unsafe-mapr-repo</id>
+			<activation>
+				<property>
+					<name>unsafe-mapr-repo</name>
+				</property>
+			</activation>
+			<repositories>
+				<!-- MapR -->
+				<repository>
+					<id>mapr-releases</id>
+					<url>http://repository.mapr.com/maven/</url>
+					<snapshots><enabled>false</enabled></snapshots>
+					<releases><enabled>true</enabled></releases>
+				</repository>
+			</repositories>
+		</profile>
+	</profiles>
+
 	<dependencies>
 
 		<dependency>
diff --git a/tools/travis_watchdog.sh b/tools/travis_watchdog.sh
index b6214fa..b9b2b7d 100755
--- a/tools/travis_watchdog.sh
+++ b/tools/travis_watchdog.sh
@@ -59,8 +59,10 @@ MVN_TEST_MODULES=$(get_test_modules_for_stage ${TEST})
 #
 # -nsu option forbids downloading snapshot artifacts. The only snapshot artifacts we depend are from
 # Flink, which however should all be built locally. see FLINK-7230
+#
+# We use -Punsafe-mapr-repo since the https version fails on Travis for some reason.
 MVN_LOGGING_OPTIONS="-Dlog.dir=${ARTIFACTS_DIR} -Dlog4j.configuration=file://$LOG4J_PROPERTIES -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
-MVN_COMMON_OPTIONS="-nsu -Dflink.forkCount=2 -Dflink.forkCountTestPackage=2 -Dfast -B -Pskip-webui-build $MVN_LOGGING_OPTIONS"
+MVN_COMMON_OPTIONS="-nsu -Dflink.forkCount=2 -Dflink.forkCountTestPackage=2 -Dfast -B -Pskip-webui-build -Punsafe-mapr-repo $MVN_LOGGING_OPTIONS"
 MVN_COMPILE_OPTIONS="-DskipTests"
 MVN_TEST_OPTIONS="$MVN_LOGGING_OPTIONS -Dflink.tests.with-openssl"