From 666d93c294458cb056cb590eb11bb6cf979861e5 Mon Sep 17 00:00:00 2001 From: Matei Zaharia Date: Tue, 27 Aug 2013 19:23:54 -0700 Subject: Update Maven build to create assemblies expected by new scripts This includes the following changes: - The "assembly" package now builds in Maven by default, and creates an assembly containing both hadoop-client and Spark, unlike the old BigTop distribution assembly that skipped hadoop-client - There is now a bigtop-dist package to build the old BigTop assembly - The repl-bin package is no longer built by default since the scripts don't reply on it; instead it can be enabled with -Prepl-bin - Py4J is now included in the assembly/lib folder as a local Maven repo, so that the Maven package can link to it - run-example now adds the original Spark classpath as well because the Maven examples assembly lists spark-core and such as provided - The various Maven projects add a spark-yarn dependency correctly --- examples/pom.xml | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 56 insertions(+), 6 deletions(-) (limited to 'examples/pom.xml') diff --git a/examples/pom.xml b/examples/pom.xml index d24bd404fa..687fbcca8f 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -36,21 +36,25 @@ org.spark-project spark-core ${project.version} + provided org.spark-project spark-streaming ${project.version} + provided org.spark-project spark-mllib ${project.version} + provided org.spark-project spark-bagel ${project.version} + provided org.apache.hbase @@ -67,10 +71,6 @@ - - org.scala-lang - scala-library - org.eclipse.jetty jetty-server @@ -126,13 +126,63 @@ + + + + hadoop2-yarn + + + org.spark-project + spark-yarn + ${project.version} + provided + + + + + target/scala-${scala.version}/classes target/scala-${scala.version}/test-classes - org.scalatest - scalatest-maven-plugin + org.apache.maven.plugins + maven-shade-plugin + + false + ${project.build.directory}/scala-${scala.version}/${project.artifactId}-assembly-${project.version}.jar + + + *:* + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + + package + + shade + + + + + + reference.conf + + + + + -- cgit v1.2.3