Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicates includes in assembly jar #423

Merged
merged 2 commits into from
Jul 24, 2020

Conversation

tgravescs
Copy link
Collaborator

After shimlayer was merged if you didn't clean you saw an error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.2.1:shade (default) on project rapids-4-spark_2.12: Error creating shaded jar: duplicate entry: META-INF/services/com.nvidia.shaded.spark.orc.DataMask$Provider -> [Help 1]

The problem was actually there already that we are including the already built assembly jar, the new service loader transformer that was added just caused it to fail.

This modifies it to only include the META-INF pom file from that package when assembling:
0 Thu Jul 23 21:51:06 CDT 2020 META-INF/maven/com.nvidia/rapids-4-spark_2.12/
5987 Thu Jul 23 21:47:32 CDT 2020 META-INF/maven/com.nvidia/rapids-4-spark_2.12/pom.xml
123 Thu Jul 23 21:50:08 CDT 2020 META-INF/maven/com.nvidia/rapids-4-spark_2.12/pom.properties

This is what we were including previously.

@tgravescs
Copy link
Collaborator Author

build

@revans2 revans2 merged commit e6b919a into NVIDIA:branch-0.2 Jul 24, 2020
@jlowe jlowe added the build Related to CI / CD or cleanly building label Jul 24, 2020
@jlowe jlowe added this to the Jul 20 - Jul 31 milestone Jul 24, 2020
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
* Fix duplicates includes

* only include META-INF

Co-authored-by: Thomas Graves <tgraves@nvidia.com>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
* Fix duplicates includes

* only include META-INF

Co-authored-by: Thomas Graves <tgraves@nvidia.com>
pxLi pushed a commit to pxLi/spark-rapids that referenced this pull request May 12, 2022
tgravescs pushed a commit to tgravescs/spark-rapids that referenced this pull request Nov 30, 2023
Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to CI / CD or cleanly building
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants