Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Update maven repo URL #528

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion docker/pio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docker/pio/pio_run
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down