Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 47426 invoked from network); 26 Nov 2007 08:38:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2007 08:38:24 -0000 Received: (qmail 34198 invoked by uid 500); 26 Nov 2007 08:38:11 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 34123 invoked by uid 500); 26 Nov 2007 08:38:10 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 34112 invoked by uid 99); 26 Nov 2007 08:38:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 00:38:10 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [88.198.46.98] (HELO indoqa.com) (88.198.46.98) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 08:37:48 +0000 Received: from [192.168.1.32] (chello062178239020.5.15.vie.surfer.at [62.178.239.20]) by indoqa.com (Postfix) with ESMTP id 473B12541F9 for ; Mon, 26 Nov 2007 09:54:06 +0100 (CET) Message-ID: <474A85DD.8050601@apache.org> Date: Mon, 26 Nov 2007 09:37:49 +0100 From: Reinhard Poetz User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: [SlightlyOT] Maven dependency resolution References: <474687C7.6080100@gmx.de> <474998A2.1050205@apache.org> <474A4FFE.3070709@gmx.de> <474A58E3.6040303@gmx.de> <474A5FF1.5060808@dslextreme.com> <474A7983.1070300@apache.org> <474A7E97.2040701@dslextreme.com> In-Reply-To: <474A7E97.2040701@dslextreme.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Ralph Goers wrote: > Reinhard Poetz wrote: >> Ralph Goers wrote: >>> Is the cocoon build really trying to rely on transitive dependency >>> verions? Very bad idea. Versions of every dependency cocoon uses >>> directly or indirectly should be specified in the managedDependencies. >> >> The problem is that the groupId of the Avalon framework changed and >> that's the root of all evil in this case. We ever never need a >> dependency on Avalon 4.1.3 but how to express this in the >> managedDependencies section? >> >> The only chance for us is configuring "exclusions" but first you have >> to figure out that you have to do it at all (here the dependency >> module comes into play). >> >> I have also experienced very strange behaviour of the dependency >> resultion mechanism e.g. I exclude avalon-framework from being pulled >> in by commons-logging but then, when I use commons-beanutils, which >> pulls in commons-logging, the avalon-framework dependency is used again. >> >> TBH, I have no idea why the dependency resolution is still buggy after >> such a long time after the first final Maven 2 release :-/ > > Can you point me at the poms I should look at to see this? If you refer to the commons-beanutils/commons-logging problem, here is a stripped down variant of a custom project of ours that reproduced the problem: PARENT: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4.0.0 pom com.example test-parent 1-SNAPSHOT org.apache.cocoon cocoon-core 2.2.0-RC2 commons-beanutils commons-beanutils 1.8.0-BETA commons-logging commons-logging 1.1 use-snapshots maven-dependency-plugin 2.0-alpha-5-SNAPSHOT apache.org Maven Snapshots http://people.apache.org/repo/m2-snapshot-repository false true codehaus.org CodeHaus Snapshots http://snapshots.repository.codehaus.org false true apache.org Maven Plugin Snapshots http://people.apache.org/repo/m2-snapshot-repository false true codehaus.org Maven Plugin Snapshots (Codehaus) http://snapshots.repository.codehaus.org false true CHILD: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4.0.0 pom com.example test-parent 1-SNAPSHOT test-child 1.0.0-SNAPSHOT org.apache.cocoon cocoon-core commons-beanutils commons-beanutils foo Run "mvn dependency:list -P use-snapshots" and "mvn dependency:list -P use-snapshots,foo" for the child project and compare the results with regard to avalon-framework. -- Reinhard P�tz Managing Director, {Indoqa} GmbH http://www.indoqa.com/en/people/reinhard.poetz/ Member of the Apache Software Foundation Apache Cocoon Committer, PMC member, PMC Chair reinhard@apache.org _________________________________________________________________________