[ 
https://issues.apache.org/jira/browse/HADOOP-18676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17704894#comment-17704894
 ] 

ASF GitHub Bot commented on HADOOP-18676:
-----------------------------------------

akatona84 opened a new pull request, #5513:
URL: https://github.com/apache/hadoop/pull/5513

   hadoop-client's dependencies' exclusions are adjusted accordingly
   
   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   
   
   ### How was this patch tested?
   
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   




> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to