Skip to content

Commit 7043a8e

Browse files
committed
Use HTTPS for Maven Central libs and plugins; use id 'central' to override parent properly; use HTTPS for Spring repo
1 parent 09f7e45 commit 7043a8e

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

pom.xml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@
143143

144144
<repositories>
145145
<repository>
146-
<id>maven-repo</id>
146+
<id>central</id>
147147
<!-- This should be at top, it makes maven try the central repo first and then others and hence faster dep resolution -->
148148
<name>Maven Repository</name>
149149
<!-- HTTPS is unavailable for Maven Central -->
150-
<url>http://repo.maven.apache.org/maven2</url>
150+
<url>https://repo.maven.apache.org/maven2</url>
151151
<releases>
152152
<enabled>true</enabled>
153153
</releases>
@@ -213,7 +213,7 @@
213213
<repository>
214214
<id>spring-releases</id>
215215
<name>Spring Release Repository</name>
216-
<url>http://repo.spring.io/libs-release</url>
216+
<url>https://repo.spring.io/libs-release</url>
217217
<releases>
218218
<enabled>true</enabled>
219219
</releases>
@@ -222,6 +222,15 @@
222222
</snapshots>
223223
</repository>
224224
</repositories>
225+
<pluginRepositories>
226+
<pluginRepository>
227+
<id>central</id>
228+
<url>https://repo1.maven.org/maven2</url>
229+
<releases>
230+
<enabled>true</enabled>
231+
</releases>
232+
</pluginRepository>
233+
</pluginRepositories>
225234

226235
<dependencyManagement>
227236
<dependencies>

0 commit comments

Comments
 (0)