diff --git a/pom.xml b/pom.xml index 288bbf1114bead7ea7d39c9e06b95e1b679d1bb9..687cc6352d5c1b863c24dd2f2629771eaa952176 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> @@ -992,6 +1002,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> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <shadedArtifactAttached>false</shadedArtifactAttached> + <artifactSet> + <includes> + <include>org.spark-project.spark:unused</include> + </includes> + </artifactSet> + </configuration> + </execution> + </executions> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId>