From b637468db3d4320a68e5c512a01078d07c0f5218 Mon Sep 17 00:00:00 2001 From: Iago Tomas Date: Fri, 8 May 2020 00:50:30 +0200 Subject: [PATCH 1/3] Update maven repo URL central.maven.org was deprecated on July'19 https://central.sonatype.org/articles/2019/Jul/15/central-http-deprecation-update/ --- docker/pio/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/pio/Dockerfile b/docker/pio/Dockerfile index 0d454184b6..aef20728e3 100644 --- a/docker/pio/Dockerfile +++ b/docker/pio/Dockerfile @@ -50,7 +50,7 @@ RUN bash ./make-distribution.sh \ RUN cp /etc/predictionio/pio-env.sh /etc/predictionio/pio-env.sh.orig && \ echo "#!/usr/bin/env bash" > /etc/predictionio/pio-env.sh RUN curl -o $PIO_HOME/lib/postgresql-$PGSQL_VERSION.jar \ - http://central.maven.org/maven2/org/postgresql/postgresql/$PGSQL_VERSION/postgresql-$PGSQL_VERSION.jar && \ + https://repo1.maven.org/maven2/org/postgresql/postgresql/$PGSQL_VERSION/postgresql-$PGSQL_VERSION.jar && \ echo "POSTGRES_JDBC_DRIVER=$PIO_HOME/lib/postgresql-$PGSQL_VERSION.jar" >> /etc/predictionio/pio-env.sh && \ echo "MYSQL_JDBC_DRIVER=$PIO_HOME/lib/mysql-connector-java-$MYSQL_VERSION.jar" >> /etc/predictionio/pio-env.sh From 9cfc6e94aace7fb70bb474e2ecf0b3e743a82cbc Mon Sep 17 00:00:00 2001 From: Iago Tomas Date: Fri, 8 May 2020 01:01:59 +0200 Subject: [PATCH 2/3] Update pio_run too Updated outdated central.maven.org url from pio_run --- docker/pio/pio_run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/pio/pio_run b/docker/pio/pio_run index 83ac6cc11c..dc5a93447c 100644 --- a/docker/pio/pio_run +++ b/docker/pio/pio_run @@ -39,7 +39,7 @@ fi if [ x"$PIO_STORAGE_SOURCES_MYSQL_TYPE" != "x" ] ; then MYSQL_JAR_FILE=$PIO_HOME/lib/mysql-connector-java-$MYSQL_VERSION.jar if [ ! -f $MYSQL_JAR_FILE ] ; then - curl -o $MYSQL_JAR_FILE http://central.maven.org/maven2/mysql/mysql-connector-java/$MYSQL_VERSION/mysql-connector-java-$MYSQL_VERSION.jar + curl -o $MYSQL_JAR_FILE https://repo1.maven.org/maven2/mysql/mysql-connector-java/$MYSQL_VERSION/mysql-connector-java-$MYSQL_VERSION.jar fi fi From 5492b36d9f82ba088e27a6c21c0baa5eb2d007a3 Mon Sep 17 00:00:00 2001 From: Iago Tomas Date: Fri, 8 May 2020 01:03:42 +0200 Subject: [PATCH 3/3] And install.sh ... --- bin/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install.sh b/bin/install.sh index 93e4eb5010..707689c47c 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -391,7 +391,7 @@ case $source_setup in echo -e "\033[1;31mPlease install MySQL manually!\033[0m" exit 4 fi - curl -O http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.37/mysql-connector-java-${MYSQL_VERSION}.jar + curl -O https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.37/mysql-connector-java-${MYSQL_VERSION}.jar mv mysql-connector-java-${MYSQL_VERSION}.jar ${pio_dir}/lib/ ;; "$ES_HB")