diff --git a/scripts/start-rc.bat b/scripts/start-rc.bat index f01574e377..454c7e4e98 100755 --- a/scripts/start-rc.bat +++ b/scripts/start-rc.bat @@ -8,7 +8,7 @@ set HAZELCAST_TEST_VERSION=%HZ_VERSION% set HAZELCAST_ENTERPRISE_VERSION=%HZ_VERSION% set HAZELCAST_RC_VERSION=0.8-SNAPSHOT set SNAPSHOT_REPO=https://oss.sonatype.org/content/repositories/snapshots -set RELEASE_REPO=http://repo1.maven.apache.org/maven2 +set RELEASE_REPO=https://repo.maven.apache.org/maven2 set ENTERPRISE_RELEASE_REPO=https://repository.hazelcast.com/release/ set ENTERPRISE_SNAPSHOT_REPO=https://repository.hazelcast.com/snapshot/ @@ -26,7 +26,7 @@ if exist "hazelcast-remote-controller-%HAZELCAST_RC_VERSION%.jar" ( echo "hazelcast-remote-controller-%HAZELCAST_RC_VERSION%.jar already exist, not downloading from maven." ) else ( echo "Downloading: remote-controller jar com.hazelcast:hazelcast-remote-controller:%HAZELCAST_RC_VERSION%" - call mvn -q org.apache.maven.plugins:maven-dependency-plugin:2.10:get -Dtransitive=false -DremoteRepositories=%SNAPSHOT_REPO% -Dartifact=com.hazelcast:hazelcast-remote-controller:%HAZELCAST_RC_VERSION% -Ddest=hazelcast-remote-controller-%HAZELCAST_RC_VERSION%.jar || ( + call mvn -q org.apache.maven.plugins:maven-dependency-plugin:2.10:get -Dtransitive=false -DremoteRepositories=%ENTERPRISE_SNAPSHOT_REPO% -Dartifact=com.hazelcast:hazelcast-remote-controller:%HAZELCAST_RC_VERSION% -Ddest=hazelcast-remote-controller-%HAZELCAST_RC_VERSION%.jar || ( echo "Failed download remote-controller jar com.hazelcast:hazelcast-remote-controller:%HAZELCAST_RC_VERSION%" exit /b 1 ) diff --git a/scripts/start-rc.sh b/scripts/start-rc.sh index 4bdfac9a3f..ddb1e0685f 100755 --- a/scripts/start-rc.sh +++ b/scripts/start-rc.sh @@ -39,7 +39,7 @@ HAZELCAST_TEST_VERSION=${HZ_VERSION} HAZELCAST_ENTERPRISE_VERSION=${HZ_VERSION} HAZELCAST_RC_VERSION=0.8-SNAPSHOT SNAPSHOT_REPO="https://oss.sonatype.org/content/repositories/snapshots" -RELEASE_REPO="http://repo1.maven.apache.org/maven2" +RELEASE_REPO="https://repo.maven.apache.org/maven2" ENTERPRISE_RELEASE_REPO="https://repository.hazelcast.com/release/" ENTERPRISE_SNAPSHOT_REPO="https://repository.hazelcast.com/snapshot/" @@ -55,7 +55,7 @@ fi if [ -f "hazelcast-remote-controller-${HAZELCAST_RC_VERSION}.jar" ]; then echo "remote controller already exist, not downloading from maven." else - downloadFromMaven ${SNAPSHOT_REPO} "com.hazelcast:hazelcast-remote-controller:${HAZELCAST_RC_VERSION}" + downloadFromMaven ${ENTERPRISE_SNAPSHOT_REPO} "com.hazelcast:hazelcast-remote-controller:${HAZELCAST_RC_VERSION}" fi if [ -f "hazelcast-${HAZELCAST_TEST_VERSION}-tests.jar" ]; then