Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 83955 invoked from network); 19 Oct 2007 07:10:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Oct 2007 07:10:48 -0000 Received: (qmail 3620 invoked by uid 500); 19 Oct 2007 07:10:28 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 3551 invoked by uid 500); 19 Oct 2007 07:10:28 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 3540 invoked by uid 99); 19 Oct 2007 07:10:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2007 00:10:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [134.98.65.18] (HELO gateway.elsag.de) (134.98.65.18) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 19 Oct 2007 07:10:24 +0000 Received: from esmail by gateway.elsag.de via smtpd (for athena.apache.org [140.211.11.136]) with ESMTP; Fri, 19 Oct 2007 09:09:58 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: DuplicateProjectException Date: Fri, 19 Oct 2007 09:09:57 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: DuplicateProjectException Thread-Index: AcgRoa0BcORmHbUzSpWj2XyeR4ZN9wAfTtlw References: <52bab8690710161335q28e3b7c5ja09d24df9de8c7da@mail.gmail.com> <394ab6ec0710170819q5c4207a3l31cbdb9b89c2710b@mail.gmail.com> <394ab6ec0710180911n788324bfj429461f77fe04e36@mail.gmail.com> From: =?iso-8859-1?Q?J=F6rg_Schaible?= To: "Maven Users List" X-Virus-Checked: Checked by ClamAV on apache.org Heinrich Nirschl wrote on Thursday, October 18, 2007 6:12 PM: > On 10/18/07, Jason Nerothin wrote: >> Okay, so what I mean is that I have four complilation units: Unit A >> has compile-time dependencies on B1 and B2 which in turn have a >> compile-time dependency on unit C. "mvn compile" tries to figure out >> "which" code to link against (B1->C or B2->C) and throws a > DuplicateProjectException. Is such an >> arrangement possible with maven or am I missing some larger point >> about dependency management? >=20 > The situation you describe is normally handled without any problem. In > fact it is quite common that dependencies have common > sub-dependencies, just think of C being a logging package for example. >=20 > I don't know in which situations Maven throws a > DuplicateProjectException (never saw this one myself). Its maybe > easier to diagnose the problem if we see the poms. In case of a copy & paste error. Copy an existing sub project, add it to = the multi project build and forget to adjust the artifactId ... boom! :) - J=F6rg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org