Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 94FB02009F8 for ; Thu, 19 May 2016 15:37:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 93B4E1609AE; Thu, 19 May 2016 13:37:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E904C160A00 for ; Thu, 19 May 2016 15:37:13 +0200 (CEST) Received: (qmail 99153 invoked by uid 500); 19 May 2016 13:37:13 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 99112 invoked by uid 99); 19 May 2016 13:37:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2016 13:37:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CEF122C1F5C for ; Thu, 19 May 2016 13:37:12 +0000 (UTC) Date: Thu, 19 May 2016 13:37:12 +0000 (UTC) From: "Dmitry Spikhalskiy (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MENFORCER-252) DependencyConvergence rule doesn't account dependencyManagement section correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 19 May 2016 13:37:14 -0000 [ https://issues.apache.org/jira/browse/MENFORCER-252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmitry Spikhalskiy updated MENFORCER-252: ----------------------------------------- Labels: dependency-tree (was: ) > DependencyConvergence rule doesn't account dependencyManagement section correctly > --------------------------------------------------------------------------------- > > Key: MENFORCER-252 > URL: https://issues.apache.org/jira/browse/MENFORCER-252 > Project: Maven Enforcer Plugin > Issue Type: Bug > Components: Plugin > Affects Versions: 1.4.1 > Reporter: Dmitry Spikhalskiy > Labels: dependency-tree > > DependencyConvergence doesn't catch dependencyManagement section of dependency correctly. > Specific example: > We have module that depends on async-http-client: > {code:xml} > > org.asynchttpclient > async-http-client > 2.0.3 > > {code} > From dependencyConvergence rule we get > {noformat} > [WARNING] Rule 0: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message: > Failed while enforcing releasability the error(s) are [ > Dependency convergence error for io.netty:netty-handler:4.0.36.Final paths to dependency are: > +-our_artifact > +-org.asynchttpclient:async-http-client:2.0.3 > +-io.netty:netty-codec-http:4.0.36.Final > +-io.netty:netty-handler:4.0.36.Final > and > +-our_artifact > +-org.asynchttpclient:async-http-client:2.0.3 > +-com.typesafe.netty:netty-reactive-streams:1.0.4 > +-io.netty:netty-handler:4.0.34.Final > {noformat} > While, actually, dependencyManagement section of async-http-client specifies and enforce netty-handler:4.0.36.Final and it's dependency tree doesn't contain netty-handler:4.0.34.Final > So... if it's not a bug, it should be a way to ignore such cases of explicitly resolved conflicts in external artifact maybe. > Current fix for this is > {code:xml} > > org.asynchttpclient > async-http-client > > > io.netty > netty-handler > > > > > io.netty > netty-handler > 4.0.36.Final > > {code} > But it's stupid, because netty-handler already contains only netty-handler:4.0.36.Final -- This message was sent by Atlassian JIRA (v6.3.4#6332)