-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathsettings.xml
More file actions
37 lines (31 loc) · 1.79 KB
/
Copy pathsettings.xml
File metadata and controls
37 lines (31 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<!--
Maven settings for Central Feed Service (CFS).
The pom.xml files in this repo override the `central` repository so every package is served by
the Azure Artifacts feed below. Anonymous reads of packages already saved to the feed work
without this file, so most contributors never need it.
It exists because the repository id and the credential id cannot be the same value:
* The pom repository id must be `central` in order to override the id Maven inherits from the
Super POM. Anything else leaves the real Maven Central in the resolution list (CFS0021).
* MavenAuthenticate@0 and the Azure Artifacts credential provider key credentials off the
feed name (`upstream-public`), not the repository id.
A mirror bridges the two: requests are redirected to the feed, and the mirror id matches the feed
name so credentials line up. It is scoped to `external:*` rather than `central` so that the
third-party projects build.ps1 clones and compiles also restore from the feed, since their poms
declare repositories under ids this repository does not control.
CI installs this file to ~/.m2/settings.xml. To use it locally (only needed when pulling a
package or version the feed has not cached yet):
mvn -s settings.xml <goals>
-->
<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>upstream-public</id>
<name>Azure Functions public upstream feed</name>
<url>https://pkgs.dev.azure.com/azfunc/public/_packaging/upstream-public/maven/v1</url>
<mirrorOf>external:*</mirrorOf>
</mirror>
</mirrors>
</settings>