-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-25792 Filter out o.a.hadoop.thirdparty building shaded jars #3184
Conversation
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
hbase-shaded/pom.xml
Outdated
@@ -553,6 +553,13 @@ | |||
<exclude>keytab.txt</exclude> | |||
</excludes> | |||
</filter> | |||
<filter> | |||
<!-- Remove the shaded guava added in hadoop-3.3.1+--> | |||
<artifact>*:*</artifact> |
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.
Why :?
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.
Oh I mean *:*
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.
remove all hadoop shaded jars always?
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. There is a *:*
above, let'st just add one more exclude pattern there?
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.
I was following pattern from earlier in this section. As I read it, this says apply the exclude org.apache.hadoop.thirdparty class filter across all included artifacts.
I can try narrowing the selection (probably a good idea).
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.
@ndimiduk its not jars, its excluding classes.
I tried doing
-
<!-- Don't include the shaded guava jar added in hadoop-3.3.1+-->
-
<artifact>org.apache.hadoop.thirdparty:hadoop-shaded-guava</artifact>
... this don't work... shaded classes sneak through. Let me push a noop change on a few of the modules to trip unit test runs.
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.
Just saw Duo comment. Let me do his suggestion too...
Need to add to allowed-licenses list too....
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Rerun tests to see if related (they don't look so) |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Seems H18 is broken. I marked the node as offline and kicked a new build. |
@@ -1343,7 +1343,7 @@ You can redistribute it and/or modify it under either the terms of the | |||
## See this FAQ link for justifications: https://www.apache.org/legal/resolved.html | |||
## | |||
## NB: This list is later compared as lower-case. New entries must also be all lower-case | |||
#set($non_aggregate_fine = [ 'public domain', 'new bsd license', 'bsd license', 'bsd', 'bsd 2-clause license', 'mozilla public license version 1.1', 'mozilla public license version 2.0', 'creative commons attribution license, version 2.5' ]) | |||
#set($non_aggregate_fine = [ 'public domain', 'new bsd license', 'bsd license', 'bsd', 'bsd 2-clause license', 'mozilla public license version 1.1', 'mozilla public license version 2.0', 'creative commons attribution license, version 2.5', 'apache-2.0' ]) |
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.
in the past we used hbase-resource-bundle/src/main/resources/supplemental-models.xml file to correct dependency license, like this one https://github.com/apache/hbase/pull/1582/files
either way is fine by me.
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Thanks @Apache9 for excluding h18. Thanks for review @jojochuang . Seems like this patch ok by you as is? I can change it if wanted else need +1 to commit. |
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.
I think it's good... spent some time trying to find where we supplied the license text "apache-2.0" in the hadoop-thirdparty but couldn't figure out. I think it makes more sense to accept "apache-2.0" because we'll end up adding more hadoop-thirdparty artifacts and it'll be a pain adding more rules to exclude the future ones.
Thanks for taking a look @jojochuang |
Need to add to allowed-licenses list too....