Skip to content

Commit

Permalink
fix maven-shade-plugin relocation cannot handle folder name with dot (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marsishandsome authored Nov 4, 2020
1 parent ad7e6ee commit 8ed90ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assembly/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<directory>
${project.parent.basedir}/spark-wrapper/spark-2.3/target/classes/
</directory>
<outputDirectory>resources/spark-wrapper-spark-2.3</outputDirectory>
<outputDirectory>resources/spark-wrapper-spark-2_3</outputDirectory>
<includes>
<include>**/*</include>
</includes>
Expand All @@ -32,7 +32,7 @@
<directory>
${project.parent.basedir}/spark-wrapper/spark-2.4/target/classes/
</directory>
<outputDirectory>resources/spark-wrapper-spark-2.4</outputDirectory>
<outputDirectory>resources/spark-wrapper-spark-2_4</outputDirectory>
<includes>
<include>**/*</include>
</includes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ object ReflectionUtil {
classDir.toURI.toURL
} else {
new URL(
s"jar:$tisparkClassUrl!/resources/spark-wrapper-spark-${TiSparkInfo.SPARK_MAJOR_VERSION}/")
s"jar:$tisparkClassUrl!/resources/spark-wrapper-spark-${TiSparkInfo.SPARK_MAJOR_VERSION
.replace('.', '_')}/")
}
logger.info(s"spark wrapper class url: ${sparkWrapperClassURL.toString}")

Expand Down

0 comments on commit 8ed90ed

Please sign in to comment.