From c0d16635bcefb4194acf354483e49670f0a6aa85 Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Thu, 25 Jul 2019 13:46:38 -0700 Subject: [PATCH] Introduce settings.xml with mirror on apache central repo. (#4576) * Introduce settings.xml with mirror on apache central repo. * Fixed up the old client.yml too. --- eng/pipelines/client.yml | 2 +- eng/pipelines/templates/variables/globals.yml | 2 +- eng/settings.xml | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 eng/settings.xml diff --git a/eng/pipelines/client.yml b/eng/pipelines/client.yml index 7fc3fda5fb570..12c08140c139e 100644 --- a/eng/pipelines/client.yml +++ b/eng/pipelines/client.yml @@ -5,7 +5,7 @@ trigger: - master variables: - DefaultOptions: '--batch-mode -Dmaven.wagon.http.pool=false' + DefaultOptions: '--batch-mode -Dmaven.wagon.http.pool=false --settings eng/settings.xml' LoggingOptions: '-Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' jobs: diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml index 995b5ded8d605..f8fbff4a8c081 100644 --- a/eng/pipelines/templates/variables/globals.yml +++ b/eng/pipelines/templates/variables/globals.yml @@ -1,4 +1,4 @@ variables: - DefaultOptions: '--batch-mode -Dmaven.wagon.http.pool=false' + DefaultOptions: '--batch-mode -Dmaven.wagon.http.pool=false --settings eng/settings.xml' LoggingOptions: '-Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' skipComponentGovernanceDetection: true \ No newline at end of file diff --git a/eng/settings.xml b/eng/settings.xml new file mode 100644 index 0000000000000..4df5c0bcc9742 --- /dev/null +++ b/eng/settings.xml @@ -0,0 +1,11 @@ + + + + repo-maven-apache-org-mirror + https://repo-maven-apache-org.azurefd.net/maven2 + central + + + \ No newline at end of file