Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

Commit 633b987

Browse files
authored
ci: Add .kokoro/settings.xml to use maven mirror (#1255)
1 parent d2138ed commit 633b987

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

.kokoro/presubmit/downstream-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727

2828
# Use GCP Maven Mirror
2929
mkdir -p "${HOME}/.m2"
30-
cp settings.xml "${HOME}/.m2"
30+
cp .kokoro/settings.xml "${HOME}/.m2"
3131

3232
### Round 1
3333
# Publish this repo's modules to local maven to make them available for downstream libraries

.kokoro/settings.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--
2+
~ Copyright 2022 Google LLC.
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
18+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
20+
https://maven.apache.org/xsd/settings-1.0.0.xsd">
21+
<mirrors>
22+
<mirror>
23+
<!-- Google's Maven Central mirror for Americas
24+
https://maven-central.storage.googleapis.com/index.html
25+
-->
26+
<id>google-maven-central</id>
27+
<name>GCS Maven Central mirror</name>
28+
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
29+
<mirrorOf>central</mirrorOf>
30+
</mirror>
31+
</mirrors>
32+
</settings>

0 commit comments

Comments
 (0)