Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 64799 invoked from network); 26 Oct 2007 20:37:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2007 20:37:10 -0000 Received: (qmail 24872 invoked by uid 500); 26 Oct 2007 20:36:51 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 24467 invoked by uid 500); 26 Oct 2007 20:36:50 -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 24456 invoked by uid 99); 26 Oct 2007 20:36:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 13:36:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcjtmu-turbine-maven-user-846@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 20:36:53 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IlVuo-0000dA-EV for users@maven.apache.org; Fri, 26 Oct 2007 20:36:22 +0000 Received: from hsi-kbw-082-212-033-125.hsi.kabelbw.de ([82.212.33.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Oct 2007 20:36:22 +0000 Received: from joerg.schaible by hsi-kbw-082-212-033-125.hsi.kabelbw.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Oct 2007 20:36:22 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: users@maven.apache.org To: users@maven.apache.org From: =?ISO-8859-1?Q?J=F6rg?= Schaible Subject: Re: How can I get the path for a root pom.xml's basedir in a multimodule project with pom inheritance Date: Fri, 26 Oct 2007 22:36:14 +0200 Lines: 41 Message-ID: References: <13065695.post@talk.nabble.com> <13065923.post@talk.nabble.com> <2754a34e0710080052s6f90fb54n835e70e0f1af9ef5@mail.gmail.com> <13096572.post@talk.nabble.com> <13431339.post@talk.nabble.com> <13434309.post@talk.nabble.com> <13434676.post@talk.nabble.com> Reply-To: joerg.schaible@gmx.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: hsi-kbw-082-212-033-125.hsi.kabelbw.de Mail-Copies-To: never User-Agent: KNode/0.10.5 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org clamb wrote: > > > Matthew McCullough wrote: >> >> This is a creative idea, but appears only to work if your leaf nodes of >> the project are all at the same level so that the ../../ is consistently >> just the right amount "back up" the directory tree. >> > > Yeah ... that is a limitation. However, once you have each pom.xml setup > its no longer a problem. > > The following worked for me (maven 2.0.4) as each mvn invocation at a > particular level has the rootPOM defined according to its own path. I've > got a project that goes 4 directories deep and am using this in the root > pom.xml for setting pluginDefaults so i can have my filters for the entire > project in one directory. > > > > > > true > ... > > ${rootPOM}/genericFilters > > ... > > > > Why don't you simply keep those filters in an own module and pack them into an archive? Every other project that needs to access them may declare a dep on that artifact and can user the build-helper plugin to unpack them into a temporary location. - J�rg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org