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 2A6529BB9 for ; Thu, 15 Mar 2012 12:30:08 +0000 (UTC) Received: (qmail 10857 invoked by uid 500); 15 Mar 2012 12:30:05 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 10773 invoked by uid 500); 15 Mar 2012 12:30:05 -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 10757 invoked by uid 99); 15 Mar 2012 12:30:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 12:30:05 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of eric.kolotyluk@gmail.com designates 209.85.213.43 as permitted sender) Received: from [209.85.213.43] (HELO mail-yw0-f43.google.com) (209.85.213.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 12:29:56 +0000 Received: by yhkk6 with SMTP id k6so3681824yhk.30 for ; Thu, 15 Mar 2012 05:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=tfAid3Y2Cd/y5G15+cSwDgPGThGUX4PeXkgJ/avNttI=; b=XPH+mLS8izWEpgUuKxBCnOTnxbxXZFB9rojzNDeeARHukcFe/ieEnUw/XR6XBgGnQZ dB9DVu5LL+pqz33IrKnqcNXsHmD2W7d1FtXPSPjY/kULzi0zUAToXdtg4BAouI+6+J0j IN/AQZkaxof9aVwqucbWTon2evsEj3s2exJKZPKzJTSVxijNP2QXLR0MAJOukCKz0Nex YrzJlvMeUuPK7thSCh1MuSHIawcECYVk2CqQ2K+l5HCE9xjzMeNJEcNNk1jnX41i197l fnhUpOwZa8Waujv6/OHALxO/hDs5SQMIq6B7ZWUAui6O9L6/Ai/sJ9AAC064DRqYEa2l jikA== Received: by 10.68.136.134 with SMTP id qa6mr4827637pbb.120.1331814574982; Thu, 15 Mar 2012 05:29:34 -0700 (PDT) Received: from [192.168.0.11] (S0106602ad07f9cfa.vc.shawcable.net. [24.84.168.78]) by mx.google.com with ESMTPS id f5sm1810626pbq.43.2012.03.15.05.29.33 (version=SSLv3 cipher=OTHER); Thu, 15 Mar 2012 05:29:34 -0700 (PDT) Message-ID: <4F61E0AE.3050301@gmail.com> Date: Thu, 15 Mar 2012 05:29:34 -0700 From: Eric Kolotyluk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: users@maven.apache.org Subject: Re: Which is the BEST Approach to define Global POM.XML References: <4F610C13.2070108@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 2012-03-15 3:35 AM, Jörg Schaible wrote: > Eric Kolotyluk wrote: > >> What I do is have a top-level POM like (see below), and then I have my >> top level project POMs reference that (see further below). This may not >> be the best example, as I am still in the process of building the >> infrastructure, but >> >> 1. I put the Parent POM in its own place in source control and I >> manually deploy it with Maven when I make changes. >> 2. You need to do this before creating any Project POMs that reference >> it because they should reference it via Maven and not the file >> system - if you work in a large company you will soon discover why. >> 3. There is of course a bootstrapping issue because now the project >> POMs need to know how to find your Repository Manager, which is why >> I include that information in the top level (Corporate) POM so >> people can use it as a reference. >> 4. As you may gather I am using Sonatype's Nexus as a Repository Manager. >> 5. We are still developing our corporate repository infrastructure so >> the content of the Corporate POM will evolve over time as our >> corporate governance and policies are better codified. >> >> Does that help? > [snip] > >> >> platform.Java >> platform.NET >> > [snip] > > It's a bad idea to declare modules in a global (resp. corporate POM). Such a > POM should be a project on its own with no submodules. Or do you think the > Apache parent POM references all projects at Apache that use Maven directly > (or indirectly)? FYI - those modules were not declared in the top level Corporate POM, they were declare in the Project POM. The example Corporate POM had no modules. In the original response I gave the Corporate and Project POMs were separated by a - - - - - - - - - - line. While Jörg makes a good point, the point did not pertain to my examples. > > A project POM may now refer the global parent either using a specific > version (to pin down a specific set of versions and dependencies) or a > SNAPSHOT to use the latest entries/updates of the global POM. > > - Jörg > > > --------------------------------------------------------------------- > 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