-
Notifications
You must be signed in to change notification settings - Fork 145
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
Bugfix Classpath problems (#696) #697
Bugfix Classpath problems (#696) #697
Conversation
Like that the main artifact is a thin-jar, usable as maven library dependency, having it's dependencies described in the maven pom.
…e test. Remove slf4j dependency as it is not used.
There's one issue with that: |
Hi @nightscape, publishing a fat-jar as main artifact with pom including library dependencies is against maven conventions. I strongly advise against this as it will produce classpath duplicates and problems. |
Hi @zzeekk, I've changed the PR to target an identically named branch in our repo. I will merge this PR to this branch, then I can have CI build a release from it which you and other people can test. |
Here we go: https://github.com/crealytics/spark-excel/actions/runs/3743993292 |
Hi @nightscape, finally i was able to tested this also on yarn / Spark 3.2.0, sorry for the delay: using maven dependency in a Spark applications pom.xml, creating a fat-jar and reading XML -> OK
using assembly jar with spark-shell -> OK
As you see i'm able to use Version 3.2.3_0.18.6-beta1 with Spark 3.2.0, as Spark's API is compatible and dependencies are stable within the same minor release, e.g. 3.2.x. You can also see this for other libraries, like delta lake: all delta lake 2.2.x versions are compatible with all spark versions 3.3.x, see also https://docs.delta.io/latest/releases.html. |
Hi, Thanks. |
Publish assembly jar (fat-jar) with classifier 'assembly'. Like that the main artifact is a thin-jar, usable as maven library dependency, having it's dependencies described in the maven pom, making proper dependency resolution work again. The fat-jar can be downloaded from maven central with classifier 'assembly' in the file name.
Move log4j2 implementation needed for running spark >=3.3.0 into scope test. Remove slf4j dependency as it is not used througout the project.