Skip to content

RANGER-5523: replace jersey-bundle dependency with jersey-client and jersey-core in plugins#882

Open
mneethiraj wants to merge 4 commits intoapache:masterfrom
mneethiraj:RANGER-5523
Open

RANGER-5523: replace jersey-bundle dependency with jersey-client and jersey-core in plugins#882
mneethiraj wants to merge 4 commits intoapache:masterfrom
mneethiraj:RANGER-5523

Conversation

@mneethiraj
Copy link
Contributor

What changes were proposed in this pull request?

(Please fill in changes proposed in this fix. Create an issue in ASF JIRA before opening a pull request and
set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. RANGER-XXXX: Fix a typo in YYY))

How was this patch tested?

  • verified all unit tests complete successfully
  • verified Ranger admin, usersync, kms and tagsync servers startup successfully
  • verified plugins for HDFS, Hive, HBase, Kafka, Knox, KMS, YARN and Trino initialize successfully, and enforce Ranger policies

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Ranger plugin packaging to avoid using the monolithic Jersey 1 jersey-bundle by switching to more granular Jersey artifacts, while also making several assembly descriptors pin Jersey coordinates explicitly.

Changes:

  • Add a new ${jsr311-api.version} property at the root build level.
  • Replace com.sun.jersey:jersey-bundle with com.sun.jersey:jersey-client + com.sun.jersey:jersey-core in some plugin/module dependency and assembly definitions.
  • Update multiple distro assembly descriptors to use explicit groupId:artifactId:jar:version coordinates for Jersey artifacts.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
pom.xml Adds jsr311-api.version property for packaging/assembly use.
agents-common/pom.xml Replaces jersey-bundle with jersey-client + jersey-core in shared plugin common deps.
hbase-agent/pom.xml Removes jsr311-api exclusion from jersey-client while keeping it on jersey-core.
distro/src/main/assembly/usersync.xml Pins jersey-bundle include to an explicit jar/version coordinate.
distro/src/main/assembly/storm-agent.xml Switches Storm agent packaging from jersey-bundle to jersey-client + jersey-core.
distro/src/main/assembly/sample-client.xml Pins jersey-bundle include to an explicit jar/version coordinate.
distro/src/main/assembly/ranger-tools.xml Pins jersey-bundle include to an explicit jar/version coordinate.
distro/src/main/assembly/plugin-trino.xml Removes server-related Jersey includes and adds jersey-client + jersey-core (+ jersey-json).
distro/src/main/assembly/plugin-presto.xml Removes server-related Jersey includes and adds jersey-client + jersey-core (+ jersey-json).
distro/src/main/assembly/plugin-ozone.xml Replaces prior Jersey includes with jersey-client + jersey-core in multiple dependency lists.
distro/src/main/assembly/plugin-kafka.xml Replaces jersey-bundle with jersey-client + jersey-core in plugin impl packaging.
distro/src/main/assembly/plugin-elasticsearch.xml Replaces jersey-bundle with jersey-client + jersey-core in plugin impl packaging.
distro/src/main/assembly/plugin-atlas.xml Replaces jersey-bundle with jersey-client + jersey-core in plugin impl packaging.
distro/src/main/assembly/plugin-solr.xml Replaces jersey-bundle with jersey-client + jersey-core and explicitly includes jsr311-api.
distro/src/main/assembly/kms.xml Pins jersey-bundle include to an explicit jar/version coordinate.
distro/src/main/assembly/admin-web.xml Adds an explicit jersey-bundle include to the embedded webserver lib set.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 25 out of 25 changed files in this pull request and generated 9 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants