diff --git a/bin/compute-classpath.sh b/bin/compute-classpath.sh
index 9e8d0b785194..a8c344b1ca59 100755
--- a/bin/compute-classpath.sh
+++ b/bin/compute-classpath.sh
@@ -50,8 +50,8 @@ fi
if [ -n "$SPARK_PREPEND_CLASSES" ]; then
echo "NOTE: SPARK_PREPEND_CLASSES is set, placing locally compiled Spark"\
"classes ahead of assembly." >&2
+ # Spark classes
CLASSPATH="$CLASSPATH:$FWDIR/core/target/scala-$SPARK_SCALA_VERSION/classes"
- CLASSPATH="$CLASSPATH:$FWDIR/core/target/jars/*"
CLASSPATH="$CLASSPATH:$FWDIR/repl/target/scala-$SPARK_SCALA_VERSION/classes"
CLASSPATH="$CLASSPATH:$FWDIR/mllib/target/scala-$SPARK_SCALA_VERSION/classes"
CLASSPATH="$CLASSPATH:$FWDIR/bagel/target/scala-$SPARK_SCALA_VERSION/classes"
@@ -63,6 +63,8 @@ if [ -n "$SPARK_PREPEND_CLASSES" ]; then
CLASSPATH="$CLASSPATH:$FWDIR/sql/hive/target/scala-$SPARK_SCALA_VERSION/classes"
CLASSPATH="$CLASSPATH:$FWDIR/sql/hive-thriftserver/target/scala-$SPARK_SCALA_VERSION/classes"
CLASSPATH="$CLASSPATH:$FWDIR/yarn/stable/target/scala-$SPARK_SCALA_VERSION/classes"
+ # Jars for shaded deps in their original form (copied here during build)
+ CLASSPATH="$CLASSPATH:$FWDIR/core/target/jars/*"
fi
# Use spark-assembly jar from either RELEASE or assembly directory
diff --git a/core/pom.xml b/core/pom.xml
index 31e919a1c831..d91f4ee0241a 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -94,22 +94,35 @@
org.apache.curator
curator-recipes
+
+
org.eclipse.jetty
jetty-plus
+ compile
org.eclipse.jetty
jetty-security
+ compile
org.eclipse.jetty
jetty-util
+ compile
org.eclipse.jetty
jetty-server
+ compile
+
+ org.eclipse.jetty
+ jetty-http
+ compile
+
+
org.apache.commons
commons-lang3
@@ -348,19 +361,24 @@
org.apache.maven.plugins
maven-dependency-plugin
+
copy-dependencies
package
copy-dependencies
-
+
${project.build.directory}
false
false
true
true
- guava
+
+ guava,jetty-io,jetty-http,jetty-plus,jetty-util,jetty-server
+
true
diff --git a/network/common/pom.xml b/network/common/pom.xml
index 5a9bbe105d9f..8f7c924d6b3a 100644
--- a/network/common/pom.xml
+++ b/network/common/pom.xml
@@ -101,18 +101,6 @@
-
- org.apache.maven.plugins
- maven-shade-plugin
-
- false
-
-
- com.google.guava:guava
-
-
-
-
diff --git a/pom.xml b/pom.xml
index 4adfdf3eb870..63c0a2af9e02 100644
--- a/pom.xml
+++ b/pom.xml
@@ -337,25 +337,39 @@
+
+
+
+ org.eclipse.jetty
+ jetty-http
+ ${jetty.version}
+ provided
+
org.eclipse.jetty
jetty-util
${jetty.version}
+ provided
org.eclipse.jetty
jetty-security
${jetty.version}
+ provided
org.eclipse.jetty
jetty-plus
${jetty.version}
+ provided
org.eclipse.jetty
jetty-server
${jetty.version}
+ provided
com.google.guava
@@ -363,6 +377,8 @@
14.0.1
provided
+
+
org.apache.commons
commons-lang3
@@ -1276,10 +1292,26 @@
false
+
org.spark-project.spark:unused
+
+ org.eclipse.jetty:jetty-io
+ org.eclipse.jetty:jetty-http
+ org.eclipse.jetty:jetty-plus
+ org.eclipse.jetty:jetty-security
+ org.eclipse.jetty:jetty-util
+ org.eclipse.jetty:jetty-server
+ com.google.guava:guava
+
+ org.eclipse.jetty
+ org.spark-project.jetty
+
+ org.eclipse.jetty.**
+
+
com.google.common
org.spark-project.guava