-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease-ci-settings.xml
More file actions
162 lines (157 loc) · 5.98 KB
/
Copy pathrelease-ci-settings.xml
File metadata and controls
162 lines (157 loc) · 5.98 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2013-2025 the original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!--
Maven settings used exclusively on commercial OSS release branches
(release/VERSION branches in *-commercial repos).
This file is placed at the repo root as release-ci-settings.xml during
branch initialization and is passed to Maven via the settings flag
by deploy.yml when the file is detected. It is deleted by
spring-release-train-project-ready before the release is finalised so it
never appears in the OSS repo history.
Credentials are read from environment variables set by the CI workflow:
COMMERCIAL_ARTIFACTORY_USERNAME and COMMERCIAL_ARTIFACTORY_PASSWORD
-->
<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
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>spring-commercial-snapshot</id>
<username>${env.COMMERCIAL_ARTIFACTORY_USERNAME}</username>
<password>${env.COMMERCIAL_ARTIFACTORY_PASSWORD}</password>
</server>
<server>
<id>spring-commercial-release</id>
<username>${env.COMMERCIAL_ARTIFACTORY_USERNAME}</username>
<password>${env.COMMERCIAL_ARTIFACTORY_PASSWORD}</password>
</server>
<!--
Provides credentials when a pom.xml distributionManagement still carries the
OSS server id 'repo.spring.io' but deploy.yml has patched its URL to point at
commercial Artifactory. Maven looks up credentials by server id, so this entry
ensures the upload is authenticated even before the id is renamed.
-->
<server>
<id>repo.spring.io</id>
<username>${env.COMMERCIAL_ARTIFACTORY_USERNAME}</username>
<password>${env.COMMERCIAL_ARTIFACTORY_PASSWORD}</password>
</server>
<server>
<id>repo-spring-io-spring-commercial-snapshot</id>
<username>${env.COMMERCIAL_ARTIFACTORY_USERNAME}</username>
<password>${env.COMMERCIAL_ARTIFACTORY_PASSWORD}</password>
</server>
<server>
<id>repo-spring-io-spring-commercial-release</id>
<username>${env.COMMERCIAL_ARTIFACTORY_USERNAME}</username>
<password>${env.COMMERCIAL_ARTIFACTORY_PASSWORD}</password>
</server>
</servers>
<profiles>
<profile>
<!--
Activates alongside the pom.xml 'spring' profile (via -Pspring in the
Maven command). Maven merges both; this adds the four commercial repos
while pom.xml contributes the OSS repos (spring-snapshots, etc.).
Commercial Artifactory does not carry OSS snapshots, so spring-snapshots
from pom.xml remains the source for those.
-->
<id>spring</id>
<repositories>
<repository>
<id>spring-commercial-snapshot</id>
<name>Spring Commercial Snapshot Repository</name>
<url>https://usw1.packages.broadcom.com/artifactory/spring-enterprise-maven-dev-local</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
<repository>
<id>spring-commercial-release</id>
<name>Spring Commercial Release Repository</name>
<url>https://usw1.packages.broadcom.com/artifactory/spring-enterprise-maven-prod-local</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>repo-spring-io-spring-commercial-snapshot</id>
<name>Spring Commercial Snapshot Repository On repo.spring.io</name>
<url>https://repo.spring.io/artifactory/spring-commercial-snapshot-remote</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
<repository>
<id>repo-spring-io-spring-commercial-release</id>
<name>Spring Commercial Release Repository On repo.spring.io</name>
<url>https://repo.spring.io/artifactory/spring-commercial-release-remote</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-commercial-snapshot</id>
<name>Spring Commercial Snapshot Repository</name>
<url>https://usw1.packages.broadcom.com/artifactory/spring-enterprise-maven-dev-local</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>spring-commercial-release</id>
<name>Spring Commercial Release Repository</name>
<url>https://usw1.packages.broadcom.com/artifactory/spring-enterprise-maven-prod-local</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>repo-spring-io-spring-commercial-snapshot</id>
<name>Spring Commercial Snapshot Repository On repo.spring.io</name>
<url>https://repo.spring.io/artifactory/spring-commercial-snapshot-remote</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>repo-spring-io-spring-commercial-release</id>
<name>Spring Commercial Release Repository On repo.spring.io</name>
<url>https://repo.spring.io/artifactory/spring-commercial-release-remote</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
</settings>