aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorJosh Rosen <joshrosen@databricks.com>2016-04-26 15:14:17 -0700
committerJosh Rosen <joshrosen@databricks.com>2016-04-26 15:14:17 -0700
commit75879ac3c07f3b1a708f4392429335feb06f271b (patch)
treeecdd4a615eb609e8b5be68706a678d75b13589bc /pom.xml
parent9797cc20c0b8fb34659df11af8eccb9ed293c52c (diff)
downloadspark-75879ac3c07f3b1a708f4392429335feb06f271b.tar.gz
spark-75879ac3c07f3b1a708f4392429335feb06f271b.tar.bz2
spark-75879ac3c07f3b1a708f4392429335feb06f271b.zip
[SPARK-14925][BUILD] Re-introduce 'unused' dependency so that published POMs are flattened
Spark's published POMs are supposed to be flattened and not contain variable substitution (see SPARK-3812), but the dummy dependency that was required for this was accidentally removed. We should re-introduce this dependency in order to fix an issue where the un-flattened POMs cause the wrong dependencies to be included in Scala 2.10 published POMs. Author: Josh Rosen <joshrosen@databricks.com> Closes #12706 from JoshRosen/SPARK-14925-published-poms-should-be-flattened.
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index d3a69df7f2..34c374d669 100644
--- a/pom.xml
+++ b/pom.xml
@@ -245,6 +245,22 @@
</pluginRepositories>
<dependencies>
<!--
+ This is a dummy dependency that is used to trigger the maven-shade plugin so that Spark's
+ published POMs are flattened and do not contain variables. Without this dependency, some
+ subprojects' published POMs would contain variables like ${scala.binary.version} that will
+ be substituted according to the default properties instead of the ones determined by the
+ profiles that were active during publishing, causing the Scala 2.10 build's POMs to have 2.11
+ dependencies due to the incorrect substitutions. By ensuring that maven-shade runs for all
+ subprojects, we eliminate this problem because the substitutions are baked into the final POM.
+
+ For more details, see SPARK-3812 and MNG-2971.
+ -->
+ <dependency>
+ <groupId>org.spark-project.spark</groupId>
+ <artifactId>unused</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <!--
This is needed by the scalatest plugin, and so is declared here to be available in
all child modules, just as scalatest is run in all children
-->
@@ -2195,6 +2211,7 @@
<shadedArtifactAttached>false</shadedArtifactAttached>
<artifactSet>
<includes>
+ <include>org.spark-project.spark:unused</include>
<include>org.eclipse.jetty:jetty-io</include>
<include>org.eclipse.jetty:jetty-http</include>
<include>org.eclipse.jetty:jetty-continuation</include>