HBASE-29807 Depend on jcip-annotations explicitly#7592
HBASE-29807 Depend on jcip-annotations explicitly#7592xavifeds8 wants to merge 1 commit intoapache:masterfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
pom.xml
Outdated
| <dependency> | ||
| <groupId>com.github.stephenc.jcip</groupId> | ||
| <artifactId>jcip-annotations</artifactId> | ||
| <version>1.0-1</version> |
There was a problem hiding this comment.
move it to properties section
There was a problem hiding this comment.
Pull request overview
This PR adds the jcip-annotations dependency to HBase to maintain compatibility with Hadoop 3.4+, where the dependency is no longer transitively provided through nimbus-jose-jwt.
Key Changes:
- Added
jcip-annotationsto the root pom's dependencyManagement section - Added
jcip-annotationsas a compile-scoped optional dependency to hbase-client module
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| pom.xml | Adds jcip-annotations to dependencyManagement with version 1.0-1 using groupId com.github.stephenc.jcip |
| hbase-client/pom.xml | Declares jcip-annotations as a compile-scoped optional dependency for the hbase-client module where it's used |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <dependency> | ||
| <groupId>com.github.stephenc.jcip</groupId> | ||
| <artifactId>jcip-annotations</artifactId> | ||
| <scope>compile</scope> | ||
| <optional>true</optional> | ||
| </dependency> |
There was a problem hiding this comment.
The groupId used here (com.github.stephenc.jcip) is inconsistent with the groupId referenced in supplemental-models.xml (net.jcip). This inconsistency could lead to confusion about which artifact is actually being used. Ensure that the groupId matches what's declared in the root pom.xml's dependencyManagement section, and consider whether both need to align with the existing supplemental-models.xml entry.
There was a problem hiding this comment.
The groupId is moved to net.jcip now.
4aab895 to
c80c665
Compare
c80c665 to
7d5a9e3
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
Issue : HBase build fails with latest Hadoop versions due to missing
net.jcip.annotationspackage.Earlier hadoop was dependent on com.nimbusds:nimbus-jose-jwt:jar:9.37.2 (which brought in com.github.stephenc.jcip:jcip-annotations:jar:1.0-1).
With latest hadoop: it has moved to com.nimbusds:nimbus-jose-jwt:jar:10.0.2 (which does not bring in the dependency), refer commit apache/hadoop@3baa288#diff-635a9ebcc70f58d8ca1c55b0d78cc90064a5081d189162a432271778da3cf018.