[
https://issues.apache.org/jira/browse/HADOOP-20081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18144075#comment-18144075
]
ASF GitHub Bot commented on HADOOP-20081:
-----------------------------------------
jojochuang opened a new pull request, #8979:
URL: https://github.com/apache/hadoop/pull/8979
### Description of PR
Import `org.eclipse.jetty:jetty-bom` in `hadoop-project`
`dependencyManagement` so transitive Jetty artifacts (for example `jetty-http`
and `jetty-security`) align with `${jetty.version}` instead of versions
declared inside each Jetty POM.
Remove redundant managed Jetty coordinates that only repeated the version
(`jetty-util`, `jetty-servlet`, `jetty-webapp`, `websocket-client`,
`jetty-servlet-tester`). Keep `jetty-server` and `javax-websocket-server-impl`
entries that apply exclusions.
Remove the duplicate `jetty-bom` import and redundant explicit versions on
`org.eclipse.jetty.http2` dependencies in
`hadoop-yarn-applications-catalog-webapp` now that the parent BOM applies.
Same approach as [Apache
Ozone](https://github.com/apache/ozone/blob/c359bf72ea6aa98147fd1935952c805242f1d18c/pom.xml#L265-L271).
[HADOOP-20081](https://issues.apache.org/jira/browse/HADOOP-20081)
### How was this patch tested?
`mvn -pl hadoop-common-project/hadoop-common dependency:tree
-Dincludes=org.eclipse.jetty:jetty-http,org.eclipse.jetty:jetty-security`
Made with [Cursor](https://cursor.com)
> 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
> Priority: Major
>
> 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]