diff options
author | Josh Rosen <joshrosen@databricks.com> | 2016-01-08 20:58:53 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-01-08 20:58:53 -0800 |
commit | 090d691323063c436601943506baac3ec5255dd9 (patch) | |
tree | 982ab60cae46c8379f120a6e041a007d29ed3858 /project | |
parent | 1fdf9bbd67b884f23150b651f0fefdab6ccf008a (diff) | |
download | spark-090d691323063c436601943506baac3ec5255dd9.tar.gz spark-090d691323063c436601943506baac3ec5255dd9.tar.bz2 spark-090d691323063c436601943506baac3ec5255dd9.zip |
[SPARK-4628][BUILD] Remove all non-Maven-Central repositories from build
This patch removes all non-Maven-central repositories from Spark's build, thereby avoiding any risk of future build-breaks due to us accidentally depending on an artifact which is not present in an immutable public Maven repository.
I tested this by running
```
build/mvn \
-Phive \
-Phive-thriftserver \
-Pkinesis-asl \
-Pspark-ganglia-lgpl \
-Pyarn \
dependency:go-offline
```
inside of a fresh Ubuntu Docker container with no Ivy or Maven caches (I did a similar test for SBT).
Author: Josh Rosen <joshrosen@databricks.com>
Closes #10659 from JoshRosen/SPARK-4628.
Diffstat (limited to 'project')
-rw-r--r-- | project/SparkBuild.scala | 7 | ||||
-rw-r--r-- | project/plugins.sbt | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala index 5d4f19ab14..4c34c888cf 100644 --- a/project/SparkBuild.scala +++ b/project/SparkBuild.scala @@ -141,7 +141,12 @@ object SparkBuild extends PomBuild { publishMavenStyle := true, unidocGenjavadocVersion := "0.9-spark0", - resolvers += Resolver.mavenLocal, + // Override SBT's default resolvers: + resolvers := Seq( + DefaultMavenRepository, + Resolver.mavenLocal + ), + externalResolvers := resolvers.value, otherResolvers <<= SbtPomKeys.mvnLocalRepository(dotM2 => Seq(Resolver.file("dotM2", dotM2))), publishLocalConfiguration in MavenCompile <<= (packagedArtifacts, deliverLocal, ivyLoggingLevel) map { (arts, _, level) => new PublishConfiguration(None, "dotM2", arts, Seq(), level) diff --git a/project/plugins.sbt b/project/plugins.sbt index 15ba3a36d5..822a7c4a82 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,9 +1,3 @@ -resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns) - -resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" - -resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/" - addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2") addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.2.0") |