Skip to content

Commit

Permalink
Introduce settings.xml with mirror on apache central repo. (#4576)
Browse files Browse the repository at this point in the history
* Introduce settings.xml with mirror on apache central repo.

* Fixed up the old client.yml too.
  • Loading branch information
mitchdenny authored Jul 25, 2019
1 parent ec4b55c commit c0d1663
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eng/pipelines/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/variables/globals.yml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions eng/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>repo-maven-apache-org-mirror</id>
<url>https://repo-maven-apache-org.azurefd.net/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>

0 comments on commit c0d1663

Please sign in to comment.