Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15FEAE27B for ; Fri, 25 Jan 2013 18:34:37 +0000 (UTC) Received: (qmail 72321 invoked by uid 500); 25 Jan 2013 18:34:35 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 72199 invoked by uid 500); 25 Jan 2013 18:34:34 -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 72191 invoked by uid 99); 25 Jan 2013 18:34:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jan 2013 18:34:34 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.65.160.94] (HELO nbfkord-smmo06.seg.att.com) (209.65.160.94) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jan 2013 18:34:23 +0000 Received: from unknown [144.160.112.28] (EHLO tlpi048.enaf.dadc.sbc.com) by nbfkord-smmo06.seg.att.com(mxl_mta-6.15.0-1) over TLS secured channel with ESMTP id 910d2015.0.2118771.00-333.5926169.nbfkord-smmo06.seg.att.com (envelope-from ); Fri, 25 Jan 2013 18:34:02 +0000 (UTC) X-MXL-Hash: 5102d01a0fd36d24-390626b3f4a8b4aed710e993fc546fbf1dc46322 Received: from enaf.dadc.sbc.com (localhost.localdomain [127.0.0.1]) by tlpi048.enaf.dadc.sbc.com (8.14.5/8.14.5) with ESMTP id r0PIY0mU010673 for ; Fri, 25 Jan 2013 12:34:01 -0600 Received: from dalint01.pst.cso.att.com (dalint01.pst.cso.att.com [135.31.133.159]) by tlpi048.enaf.dadc.sbc.com (8.14.5/8.14.5) with ESMTP id r0PIXuxw010655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 25 Jan 2013 12:33:56 -0600 Received: from WABOTH9MSGHUB8C.ITServices.sbc.com (waboth9msghub8c.itservices.sbc.com [135.163.35.217]) by dalint01.pst.cso.att.com (RSA Interceptor) for ; Fri, 25 Jan 2013 12:31:09 -0600 Received: from WABOTH9MSGUSR8C.ITServices.sbc.com ([135.163.35.214]) by WABOTH9MSGHUB8C.ITServices.sbc.com ([135.163.35.217]) with mapi id 14.02.0328.009; Fri, 25 Jan 2013 10:31:09 -0800 From: "KARR, DAVID" To: Maven Users List Subject: store file in top parent pom, along with property pointing to it, and ref that property in child poms Thread-Topic: store file in top parent pom, along with property pointing to it, and ref that property in child poms Thread-Index: Ac37KD4pIZ+1EOYNTOuc/wp7Y+DSPw== Date: Fri, 25 Jan 2013 18:31:08 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [135.163.34.4] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-RSA-Inspected: yes X-RSA-Classifications: public X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2010122901)] X-MAIL-FROM: X-SOURCE-IP: [144.160.112.28] X-AnalysisOut: [v=2.0 cv=e62xv9V/ c=1 sm=0 a=srMsL6ituuWTYeky9Bs9mA==:17 a] X-AnalysisOut: [=YnP4VLJI-BoA:10 a=So-fx4VxgCcA:10 a=ofMgfj31e3cA:10 a=BLc] X-AnalysisOut: [eEmwcHowA:10 a=kj9zAlcOel0A:10 a=zQP7CpKOAAAA:8 a=XIqpo32R] X-AnalysisOut: [AAAA:8 a=0v4-m31nYaoA:10 a=xAtx-jqlrkBSsLSbWSMA:9 a=CjuIK1] X-AnalysisOut: [q_8ugA:10] X-Virus-Checked: Checked by ClamAV on apache.org My project uses a small hierarchy of parent poms. I believe it would be a = good idea to set my Sonar connection settings in the top parent pom, instea= d of telling all the users to add a certain set of settings to their ~/.m2/= settings.xml. In addition, we're using the "sonar.secretKeyPath" property,= along with a specific secret key file. Continuing this strategy, it would= make sense to store that file in the top parent pom project and set the pr= operty to refer to that file. My problem is that I can't figure out how to set a path property that is re= lative to the top parent, but when referenced from child poms it goes to th= e correct place. If I just use the obvious "${basedir}/sonar-secret.txt" t= hat ends up being relative to the project referencing the property. I don't want child projects to need to know how deep the pom hierarchy is, = in case there was some way to do something like "parent.parent....". I do think it's ok to specify a unique property that specifies where the "r= oot" pom is, and reference things from that, but I can't figure out how to = do something useful with that idea. I tried defining that property ("root.= parent", for instance) in the top pom and giving it a value like "${basedir= }", and then having the additional property be "${root.parent}/sonar-secret= .txt", but that doesn't fool it. I really need a "statically-defined" prop= erty that references "${basedir}", so when child poms reference it, it does= n't evaluate it dynamically. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org