Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 12108 invoked from network); 27 Oct 2006 20:32:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 20:32:53 -0000 Received: (qmail 58276 invoked by uid 500); 27 Oct 2006 20:32:57 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 58226 invoked by uid 500); 27 Oct 2006 20:32:56 -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 58215 invoked by uid 99); 27 Oct 2006 20:32:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 13:32:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [160.33.98.75] (HELO mail8.fw-bc.sony.com) (160.33.98.75) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 13:32:44 -0700 Received: from mail1.sgo.in.sel.sony.com (mail1.sgo.in.sel.sony.com [43.130.1.111]) by mail8.fw-bc.sony.com (8.12.11/8.12.11) with ESMTP id k9RKWMHM024416 for ; Fri, 27 Oct 2006 20:32:22 GMT Received: from USSDIXIM02.am.sony.com (ussdixim02.am.sony.com [43.130.140.34]) by mail1.sgo.in.sel.sony.com (8.12.11/8.12.11) with ESMTP id k9RKWMDj005144 for ; Fri, 27 Oct 2006 20:32:22 GMT Received: from ussdixms03.am.sony.com ([43.130.140.23]) by USSDIXIM02.am.sony.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 27 Oct 2006 13:32:21 -0700 x-mimeole: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: local repository relative to top-level pom Date: Fri, 27 Oct 2006 13:28:46 -0700 Message-ID: <591B6A09961C354991CD653B274DC8C202FFEAB1@ussdixms03.am.sony.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: local repository relative to top-level pom Thread-Index: Acb58dTeLgfatYYjR0m1kx+aIoYtMwAE50Jw From: "Swenson, Eric" To: "Maven Users List" X-OriginalArrivalTime: 27 Oct 2006 20:32:21.0879 (UTC) FILETIME=[0137D870:01C6FA07] X-Virus-Checked: Checked by ClamAV on apache.org Hi Wayne, It is indeed possible to do this. I just wanted to avoid having to do anything but "unzip and run maven". =20 In fact, the whole way maven deals with dependencies that are NOT in public repositories and must be installed into a local repository (install:install-file) to enable a maven build is pretty clunky. Within a single organization, of course, one can provide a settings.xml file in the maven distribution that points to a network-based repository that contains the "bootstrap" files, but as soon as you hope to distribute the source code outside of the local area network, there really isn't a good solution (that I've found). =20 What I was hoping was that the "bootstrap" repository could be delivered with the source tree and a single relative path used at the top-level pom would define this repository. I may have no choice but to do what you suggest -- have each child module's pom redefine the repository using a relative path based on its own ${basedir}. It just seemed ugly to have to define the repository in each pom. Thanks for your suggestions. -- Eric -----Original Message----- From: Wayne Fay [mailto:waynefay@gmail.com]=20 Sent: Friday, October 27, 2006 11:00 AM To: Maven Users List Subject: Re: local repository relative to top-level pom Is it not possible to tell your users to edit the pom.xml (or provide a profile.xml) such that the file:// reference is absolute rather than relative? This seems to be the simplest way to do it. Or provide a relative path in each pom perhaps, unsure if this would work ie child/pom.xml ${basedir}/../repository. Wayne On 10/27/06, Swenson, Eric wrote: > I'd like to store some bootstrap artifacts (like third party jars) in > maven2 repository layout structure and deliver this repository with my > project's sources. I'd like the top-level project pom to define this > repository such that all lower-level projects will attempt to retrieve > resources from this repository. But I want to refer to the repository > with a relative path so that everything will work whether the project's > source tree is placed. So, for example, I'd like this kind of layout: > > > > pom.xml > > repository/ > > module1/ > > module2/ > > > > And I'd like module1 and module2 to find bootstrap artifacts in the > "repository" subdirectory of the top-level project. If I define, in the > parent project's pom, something like: > > > > > > > > bootstrap > > Bootstrap Repoitory > > file://localhost/${basedir}/repository > > > > > > > > Things won't work because ${basedir} is evaluated in the context of a > child module's pom, and will refer to the directory where that child > module's pom is located. How can I define the file: URL such that it > will be valid in all sub-modules? > > > > -- Eric > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org