Skip to content

Commit 4201d27

Browse files
srowenpwendell
authored andcommitted
SPARK-2879 [BUILD] Use HTTPS to access Maven Central and other repos
Maven Central has just now enabled HTTPS access for everyone to Maven Central (http://central.sonatype.org/articles/2014/Aug/03/https-support-launching-now/) This is timely, as a reminder of how easily an attacker can slip malicious code into a build that's downloading artifacts over HTTP (http://blog.ontoillogical.com/blog/2014/07/28/how-to-take-over-any-java-developer/). In the meantime, it looks like the Spring repo also now supports HTTPS, so can be used this way too. I propose to use HTTPS to access these repos. Author: Sean Owen <[email protected]> Closes #1805 from srowen/SPARK-2879 and squashes the following commits: 7043a8e [Sean Owen] Use HTTPS for Maven Central libs and plugins; use id 'central' to override parent properly; use HTTPS for Spring repo
1 parent 17caae4 commit 4201d27

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

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)