aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorSean Owen <sowen@cloudera.com>2014-03-15 16:43:27 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-03-15 16:44:34 -0700
commit97e4459e1e4cca8696535e10a91733c15f960107 (patch)
tree484c4a2da67cdae9c6bbc6fa96069dde69f1bfa5 /project
parente19044cb1048c3755d1ea2cb43879d2225d49b54 (diff)
downloadspark-97e4459e1e4cca8696535e10a91733c15f960107.tar.gz
spark-97e4459e1e4cca8696535e10a91733c15f960107.tar.bz2
spark-97e4459e1e4cca8696535e10a91733c15f960107.zip
SPARK-1254. Consolidate, order, and harmonize repository declarations in Maven/SBT builds
This suggestion addresses a few minor suboptimalities with how repositories are handled. 1) Use HTTPS consistently to access repos, instead of HTTP 2) Consolidate repository declarations in the parent POM file, in the case of the Maven build, so that their ordering can be controlled to put the fully optional Cloudera repo at the end, after required repos. (This was prompted by the untimely failure of the Cloudera repo this week, which made the Spark build fail. #2 would have prevented that.) 3) Update SBT build to match Maven build in this regard 4) Update SBT build to not refer to Sonatype snapshot repos. This wasn't in Maven, and a build generally would not refer to external snapshots, but I'm not 100% sure on this one. Author: Sean Owen <sowen@cloudera.com> Closes #145 from srowen/SPARK-1254 and squashes the following commits: 42f9bfc [Sean Owen] Use HTTPS for repos; consolidate repos in parent in order to put optional Cloudera repo last; harmonize SBT build repos with Maven; remove snapshot repos from SBT build which weren't in Maven
Diffstat (limited to 'project')
-rw-r--r--project/SparkBuild.scala23
1 files changed, 12 insertions, 11 deletions
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index bfc16e814b..db24f124f3 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -174,12 +174,18 @@ object SparkBuild extends Build {
// Only allow one test at a time, even across projects, since they run in the same JVM
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1),
- // also check the local Maven repository ~/.m2
- resolvers ++= Seq(Resolver.file("Local Maven Repo", file(Path.userHome + "/.m2/repository"))),
-
- // For Sonatype publishing
- resolvers ++= Seq("sonatype-snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
- "sonatype-staging" at "https://oss.sonatype.org/service/local/staging/deploy/maven2/"),
+ resolvers ++= Seq(
+ "Maven Repository" at "https://repo.maven.apache.org/maven2",
+ "Apache Repository" at "https://repository.apache.org/content/repositories/releases",
+ "JBoss Repository" at "https://repository.jboss.org/nexus/content/repositories/releases/",
+ "MQTT Repository" at "https://repo.eclipse.org/content/repositories/paho-releases/",
+ "Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/",
+ // For Sonatype publishing
+ //"sonatype-snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
+ //"sonatype-staging" at "https://oss.sonatype.org/service/local/staging/deploy/maven2/",
+ // also check the local Maven repository ~/.m2
+ Resolver.mavenLocal
+ ),
publishMavenStyle := true,
@@ -272,10 +278,6 @@ object SparkBuild extends Build {
def coreSettings = sharedSettings ++ Seq(
name := "spark-core",
- resolvers ++= Seq(
- "JBoss Repository" at "http://repository.jboss.org/nexus/content/repositories/releases/",
- "Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
- ),
libraryDependencies ++= Seq(
"com.google.guava" % "guava" % "14.0.1",
@@ -470,7 +472,6 @@ object SparkBuild extends Build {
def mqttSettings() = streamingSettings ++ Seq(
name := "spark-streaming-mqtt",
- resolvers ++= Seq("Eclipse Repo" at "https://repo.eclipse.org/content/repositories/paho-releases/"),
libraryDependencies ++= Seq("org.eclipse.paho" % "mqtt-client" % "0.4.0")
)
}