[
https://issues.apache.org/jira/browse/HADOOP-20081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18144438#comment-18144438
]
ASF GitHub Bot commented on HADOOP-20081:
-----------------------------------------
joseluisll commented on PR #8979:
URL: https://github.com/apache/hadoop/pull/8979#issuecomment-6855144978
@adoroszlai You're right: **today**, on 9.4, the BOM import is equivalent to
the explicit entries and adds no dependency. My concern is what it does at
HADOOP-19972, when ${jetty.version} moves to 12.1.x.
jetty-bom 12.1 manages none of the servlet-stack coordinates this PR
un-manages: in Jetty 12 they move to org.eclipse.jetty.ee8:*
(jetty-ee8-servlet, jetty-ee8-webapp, jetty-ee8-websocket-javax-server), which
live in a separate jetty-ee8-bom this PR does not import. The only
servlet/webapp coordinate the 12 BOM does manage is
org.eclipse.jetty.ee:jetty-ee-webapp — the jakarta environment, which
HADOOP-19912 explicitly rejects in favor of ee8 (javax.servlet).
So at the 19972 bump the BOM silently stops managing the servlet stack and
manages the wrong environment instead. Nothing fails at that moment — the port
has to notice, add jetty-ee8-bom, and rewrite every renamed coordinate. With
explicit entries those decisions are one visible diff in
hadoop-project/pom.xml; **with the BOM they can be skipped and rediscovered
later.** That's the whole objection: the 19972 port should have to make these
decisions in review, not inherit them silently from a BOM's contents.
If the BOM is wanted, I'd support importing jetty-bom + jetty-ee8-bom
together after 19972 lands, against final coordinates. Until then: keep the
explicit entries, land #8894 first (approved, queued in the HADOOP-19912 merge
order, edits this same dependencyManagement block), and attach HADOOP-20081 to
HADOOP-19912 so the sequencing is visible.
> Import jetty-bom in hadoop-project for consistent Jetty dependency versions
> ---------------------------------------------------------------------------
>
> Key: HADOOP-20081
> URL: https://issues.apache.org/jira/browse/HADOOP-20081
> Project: Hadoop Common
> Issue Type: Improvement
> Components: build
> Reporter: Wei-Chiu Chuang
> Assignee: Wei-Chiu Chuang
> Priority: Major
> Labels: pull-request-available
>
> hadoop-project lists several Jetty artifacts in dependencyManagement while
> transitive Jetty modules (jetty-http, jetty-security, etc.) can resolve to
> different versions than jetty-server.
> Import org.eclipse.jetty:jetty-bom (${jetty.version}) in the parent POM,
> matching the approach used in Apache Ozone. Remove redundant Jetty entries
> without exclusions from dependencyManagement, and drop the duplicate
> jetty-bom import from hadoop-yarn-applications-catalog-webapp.
> Precedent:
> https://github.com/apache/ozone/blob/c359bf72ea6aa98147fd1935952c805242f1d18c/pom.xml#L265-L271
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]