aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pom.xml33
1 files changed, 32 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index a7e71f9ca5..a9897b866b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -248,7 +248,17 @@
</snapshots>
</pluginRepository>
</pluginRepositories>
-
+ <!--
+ This is a dummy dependency that is used along with the shading plug-in
+ to create effective poms on publishing (see SPARK-3812).
+ -->
+ <dependencies>
+ <dependency>
+ <groupId>org.spark-project.spark</groupId>
+ <artifactId>unused</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ </dependencies>
<dependencyManagement>
<dependencies>
<dependency>
@@ -997,6 +1007,27 @@
</pluginManagement>
<plugins>
+ <!-- The shade plug-in is used here to create effective pom's (see SPARK-3812). -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <configuration>
+ <shadedArtifactAttached>false</shadedArtifactAttached>
+ <artifactSet>
+ <includes>
+ <include>org.spark-project.spark:unused</include>
+ </includes>
+ </artifactSet>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>