-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathsettings.xml
More file actions
36 lines (30 loc) · 1.68 KB
/
Copy pathsettings.xml
File metadata and controls
36 lines (30 loc) · 1.68 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
<?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 routes all Maven repositories through the feed. This also prevents repositories declared
by dependency or plugin metadata, such as Sonatype snapshots, from bypassing CFS. The mirror id
matches the feed name so credentials line up.
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>*</mirrorOf>
</mirror>
</mirrors>
</settings>