You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Andras Katona (Jira)" <ji...@apache.org> on 2023/03/25 06:15:00 UTC

[jira] [Reopened] (HADOOP-18676) Include jettison as direct dependency of hadoop-common

     [ https://issues.apache.org/jira/browse/HADOOP-18676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andras Katona reopened HADOOP-18676:
------------------------------------

we need to revert and recreate another PR with hadoop-client dependency handlings

> Include jettison as direct dependency of hadoop-common
> ------------------------------------------------------
>
>                 Key: HADOOP-18676
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18676
>             Project: Hadoop Common
>          Issue Type: Task
>          Components: common
>            Reporter: Andras Katona
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.0
>
>
> When hadoop common is pulled in outside of hadoop project, the wrong version of jettison is coming as the dependency management of hadoop-project doesn't apply this case.
> So it's not enough just to upgrade the version in dependency management. When jettison is coming only as transitive, whoever is pulling in that hadoop library, will still get the wrong jettison.
> example:
> hadoop-common
> {noformat}
> org.example:untitled:jar:1.0-SNAPSHOT
> \- org.apache.hadoop:hadoop-common:jar:3.4.0-SNAPSHOT:compile
> ...
>    +- com.github.pjfanning:jersey-json:jar:1.20:compile
>    |  +- org.codehaus.jettison:jettison:jar:1.1:compile
> ...
> {noformat}
> When the module is a library (so it will be used outside of the actual project), the correct dependency must be declared as direct dependency (and optionally excluding from the dependency where it came from originally).
> jettison should be added as direct dependency



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org