Skip to content

Commit c89b431

Browse files
committed
[SPARK-22849] ivy.retrieve pattern should also consider classifier
## What changes were proposed in this pull request? In the previous PR #5755 (comment), we dropped `(-[classifier])` from the retrieval pattern. We should add it back; otherwise, > If this pattern for instance doesn't has the [type] or [classifier] token, Ivy will download the source/javadoc artifacts to the same file as the regular jar. ## How was this patch tested? The existing tests Author: gatorsmile <[email protected]> Closes #20037 from gatorsmile/addClassifier.
1 parent d762d11 commit c89b431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ private[spark] object SparkSubmitUtils {
12711271
// retrieve all resolved dependencies
12721272
ivy.retrieve(rr.getModuleDescriptor.getModuleRevisionId,
12731273
packagesDirectory.getAbsolutePath + File.separator +
1274-
"[organization]_[artifact]-[revision].[ext]",
1274+
"[organization]_[artifact]-[revision](-[classifier]).[ext]",
12751275
retrieveOptions.setConfs(Array(ivyConfName)))
12761276
resolveDependencyPaths(rr.getArtifacts.toArray, packagesDirectory)
12771277
} finally {

0 commit comments

Comments
 (0)