-
Notifications
You must be signed in to change notification settings - Fork 986
DRILL-7353: Wrong driver class is written to the java.sql.Driver #1845
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
Conversation
|
@agozhiy could you provide more context to this issue. Why this approach was chosen? |
|
@arina-ielchiieva, There are two artifacts that provide java.sql.Driver to the jar. Apparently the wrong one overwrites the right. So I excluded the file from Avatica to resolve the conflict. |
|
From the shade plugin documentation:
So we cannot just exclude everything and then include a specific resource. Instead, we should exclude all interfering ones, that is the approach used in the PR. |
arina-ielchiieva
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, since this is the only option, let's use it.
| <exclude>webapps/**</exclude> | ||
| </excludes> | ||
| </filter> | ||
| <filter> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add comment explaining why we need to exclude this file.
| <exclude>webapps/**</exclude> | ||
| </excludes> | ||
| </filter> | ||
| <filter> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
7ca0fc9 to
173edec
Compare
|
+1, please squash the commits. |
https://issues.apache.org/jira/browse/DRILL-7353