From issues-return-58042-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Fri Feb 23 14:05:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0E3DA18067E for ; Fri, 23 Feb 2018 14:05:05 +0100 (CET) Received: (qmail 57545 invoked by uid 500); 23 Feb 2018 13:05:05 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 57535 invoked by uid 99); 23 Feb 2018 13:05:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Feb 2018 13:05:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A2DBE1A07B2 for ; Fri, 23 Feb 2018 13:05:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id n5RNNGtfPFBR for ; Fri, 23 Feb 2018 13:05:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 8CA315F2C2 for ; Fri, 23 Feb 2018 13:05:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AA817E00E9 for ; Fri, 23 Feb 2018 13:05:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3C428218FE for ; Fri, 23 Feb 2018 13:05:00 +0000 (UTC) Date: Fri, 23 Feb 2018 13:05:00 +0000 (UTC) From: "Valentin Kulichenko (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-7799) Dependency Conflict : Conlicting JARs org.apache.httpcomponents:httpclient MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-7799?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163= 74311#comment-16374311 ]=20 Valentin Kulichenko commented on IGNITE-7799: --------------------------------------------- I believe Maven will use the one provided explicitly in the POM in this cas= e, not transitive one. Did you actually expirience one of these issues? > Dependency Conflict : Conlicting JARs org.apache.httpcomponents:httpclien= t > -------------------------------------------------------------------------= - > > Key: IGNITE-7799 > URL: https://issues.apache.org/jira/browse/IGNITE-7799 > Project: Ignite > Issue Type: Bug > Components: aws > Affects Versions: 2.5 > Reporter: PandaMonkey > Priority: Major > Fix For: 3.0 > > > Hi, by analyzing=C2=A0ignite-master\modules\aws\pom.xml, I found that the= re are two versions of *org.apache.httpcomponents:httpclient*. Their introd= uced path is: > # org.apache.ignite:ignite-aws:2.5.0-SNAPSHOT::null->com.amazonaws:aws-j= ava-sdk-core:1.11.75::compile->org.apache.httpcomponents:httpclient:4.5.2::= compile > # org.apache.ignite:ignite-aws:2.5.0-SNAPSHOT::null->org.apache.httpcomp= onents:httpclient:4.5.1::compile > Of them,=C2=A0httpclient:4.5.2 is the=C2=A0transitive dependency, and htt= pclient:4.5.1 is the direct dependency. By further analyzing the source cod= e, we found they have different features.=C2=A0As the JVM only load the cla= sses present first on the classpath and shadow the other duplicate ones wit= h the same names. The dependency conflict problem brings high risks of "*No= tClassDefFoundError:*" or "*NoSuchMethodError*" issues at runtime. Please n= otice this problem. *The solution is upgrading=C2=A0httpclient from 4.5.1 t= o=C2=A04.5.2.* > =C2=A0 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DprojectPath->org.apache.igni= te:ignite-aws:2.5.0-SNAPSHOT@D:\ws\snapshot\ignite-master\modules\aws\pom.x= ml > =3D=3D=3D=3D=3D=3D=3Dconflict: size:2 > org.apache.ignite:ignite-aws:2.5.0-SNAPSHOT::null->com.amazonaws:aws-jav= a-sdk-core:1.11.75::compile->org.apache.httpcomponents:httpclient:4.5.2::co= mpile > org.apache.ignite:ignite-aws:2.5.0-SNAPSHOT::null->org.apache.httpcompon= ents:httpclient:4.5.1::compile > *=3D=3D=3D=3DRisk for ClassNotFoundException/NotClassDefFoundError:* > a) Classes that only exist in org.apache.httpcomponents:httpclient:4.5.1= : > org.apache.http.client.utils.DateUtils$DateFormatHolder$1 > b) Classes that only exist in org.apache.httpcomponents:httpclient:4.5.2: > org.apache.http.conn.ssl.DefaultHostnameVerifier$TYPE > org.apache.http.impl.client.DefaultClientConnectionReuseStrategy > org.apache.http.conn.ssl.DefaultHostnameVerifier$1 > *=3D=3D=3D=3DRisk for NoSuchMethodException/NoSuchMethodError:* > Methods that only exist in org.apache.httpcomponents:httpclient:4.5.2: > > > > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)