diff options
author | Christopher Tubbs <ctubbsii@apache.org> | 2020-01-17 07:33:38 -0500 |
---|---|---|
committer | Duru Can Celasun <dcelasun@apache.org> | 2020-01-17 12:33:38 +0000 |
commit | a5ec666e1ba76fe7385ed56f484c9dfdd5b6bfc9 (patch) | |
tree | 6e546e6935026b629ffa6ae404476563c303eb93 /build | |
parent | 70c4e7a7c7b2a2b4146372868702b7ea0d143e05 (diff) | |
download | thrift-a5ec666e1ba76fe7385ed56f484c9dfdd5b6bfc9.tar.gz |
THRIFT-5068: Force secure Maven Central in Travis CI
Modify docker build scripts used in CI test environments in order to put
in place a Maven .m2/settings.xml configuration file that overrides the
repository with the id 'central' with an equivalent "mirror" that uses
https instead of http.
This closes #1988.
Diffstat (limited to 'build')
-rwxr-xr-x | build/docker/scripts/autotools.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/build/docker/scripts/autotools.sh b/build/docker/scripts/autotools.sh index 8388f728c..52b17eee8 100755 --- a/build/docker/scripts/autotools.sh +++ b/build/docker/scripts/autotools.sh @@ -1,6 +1,19 @@ #!/bin/sh set -ev +mkdir ~/.m2 +tee >~/.m2/settings.xml <<EOF +<settings xmlns='http://maven.apache.org/SETTINGS/1.0.0'> + <mirrors> + <mirror> + <id>secure-central</id> + <url>https://repo.maven.apache.org/maven2</url> + <mirrorOf>central</mirrorOf> + </mirror> + </mirrors> +</settings> +EOF + ./bootstrap.sh ./configure $* make check -j3 |