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 9DF16181AF for ; Fri, 11 Mar 2016 02:11:36 +0000 (UTC) Received: (qmail 36283 invoked by uid 500); 11 Mar 2016 02:11:35 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 36208 invoked by uid 500); 11 Mar 2016 02:11:35 -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 36184 invoked by uid 99); 11 Mar 2016 02:11:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2016 02:11:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8562EC0C99 for ; Fri, 11 Mar 2016 02:11:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (768-bit key) header.d=springdot.org Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id KRzxTtt_4AdJ for ; Fri, 11 Mar 2016 02:11:33 +0000 (UTC) Received: from gproxy8-pub.mail.unifiedlayer.com (gproxy8-pub.mail.unifiedlayer.com [67.222.33.93]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 976FC5F216 for ; Fri, 11 Mar 2016 02:11:32 +0000 (UTC) Received: (qmail 31280 invoked by uid 0); 11 Mar 2016 02:11:30 -0000 Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy8.mail.unifiedlayer.com with SMTP; 11 Mar 2016 02:11:30 -0000 Received: from box547.bluehost.com ([74.220.219.147]) by CMOut01 with id USBS1s00E3BQY5W01SBVak; Thu, 10 Mar 2016 19:11:29 -0700 X-Authority-Analysis: v=2.1 cv=G/WPTbU5 c=1 sm=1 tr=0 a=FIFu9mMsbDXqkP/Bzzri3A==:117 a=FIFu9mMsbDXqkP/Bzzri3A==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=N659UExz7-8A:10 a=JK0lism1u0sA:10 a=Q_wupnfG3SIA:10 a=7OsogOcEt9IA:10 a=IYNBIZbdAAAA:8 a=exaSUiCYAAAA:8 a=NEAV23lmAAAA:8 a=mV9VRH-2AAAA:8 a=-3USoV-0WMYokcmHqJAA:9 a=pILNOxqGKmIA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=springdot.org; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=vhYLBookGhgj/u4XIq4RRy/K6lBCPy5s1nfItE4LdWQ=; b=e3OfzEdAzv2dIEGhJ6vxaf3i6W S1okUCc1Kd30D4lPCdp+dmwZvAjQGBPUboopXxAOwjyY3oiv6ZDSFZXzxpbAhumd8nMcp6Vatzcw5 monqZSU4/X9RdhL8UevdoFmqF; Received: from [73.189.180.52] (port=47078 helo=[192.168.0.107]) by box547.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_2) (envelope-from ) id 1aeCY3-0005yl-Ct; Thu, 10 Mar 2016 19:11:27 -0700 Subject: Re: "conditional" parent POM? To: users@maven.apache.org References: <56E1D728.5010405@springdot.org> <56E1F76C.7010402@springdot.org> <51E3B42D-DD0F-4E27-B730-D191929B07CA@oracle.com> <20160311002943.2992E29C00EE@dd17332.kasserver.com> <250085C7-47E0-448D-BBA4-311F2B8D067A@oracle.com> From: Max Spring Message-ID: <56E2294C.4090606@springdot.org> Date: Thu, 10 Mar 2016 18:11:24 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <250085C7-47E0-448D-BBA4-311F2B8D067A@oracle.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {8725:box547.bluehost.com:springdo:springdot.org} {sentby:smtp auth 73.189.180.52 authed with m2spring+springdot.org} In this case I actually want to add something, or to be precise, I want my Jenkins job to add something on the fly with each build. So I can build an open source project deploying to my organization's repository manager. The property approach Manfred pointed out earlier seems to be the most straight forward. -Max On 03/10/2016 06:03 PM, Robert Patrick wrote: > The flatten plugin can remove sections of the POM that are not needed by consumers of your software binaries, such as the repositories and pluginRepositories sections. Isn't that what you are trying to achieve? > > Robert Patrick > Sent from my iDevice > >> On Mar 10, 2016, at 4:29 PM, Manfred Moser wrote: >> >> How so? The flatten plugin just flattens the poms right. If they point to an internal repo manager .. its still wrong.. >> >> Manfred >> >> Robert Patrick wrote on 2016-03-10 14:43: >> >>> Take a look at the flatten plugin...this is a much simpler way to solve that >>> problem! >>> >>> Robert Patrick >>> Sent from my iDevice >>> >>>> On Mar 10, 2016, at 2:38 PM, Max Spring wrote: >>>> >>>> Hi Curtis, >>>> >>>> I don't want to have the URL of my in-house Maven repository manager out in >>>> the open. >>>> >>>> Regards, >>>> -Max >>>> >>>> >>>>> On 03/10/2016 12:29 PM, Curtis Rueden wrote: >>>>> Hi Max, >>>>> >>>>> Why do you need two different parents? What configuration is different >>>>> between your "wild" parent and your internal one? >>>>> >>>>> Would it be sufficient to enclose the internal-specific configuration >>>>> (e.g., distributionManagement) in a profile? This technique is what my OSS >>>>> projects do [1]. >>>>> >>>>> Regards, >>>>> Curtis >>>>> >>>>> [1] >>>>> https://github.com/scijava/pom-scijava/blob/pom-scijava-9.6.0/pom.xml#L1686-L1701 >>>>> >>>>> >>>>>> On Thu, Mar 10, 2016 at 2:20 PM, Max Spring wrote: >>>>>> >>>>>> What's the best structure for a (multi-module) Maven project which should >>>>>> build "in the wild" without any Maven repository manager and can easily >>>>>> build within my organization where deployments should happen to my Maven >>>>>> repository manager? >>>>>> >>>>>> Ideally, I would have two different paren POMs for each situation. But >>>>>> unfortunately, I can't use a Maven property to pass the correct value for >>>>>> each situation, because the property expression in the parent POM reference >>>>>> doesn't get interpolated, if I try something like >>>>>> >>>>>> >>>>>> org.example >>>>>> ${root.pom} >>>>>> 1.0-SNAPSHOT >>>>>> >>>>>> >>>>>> ... >>>>>> >>>>>> wild-parent >>>>>> >>>>>> >>>>>> Added a minimalistic project which shows a crude approach to solve this by >>>>>> patching the parent POM via sed: >>>>>> https://github.com/m2spring/wild-inhouse-hybrid-example >>>>>> >>>>>> -Max >>>>>> >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> 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 >>> >>> --------------------------------------------------------------------- >>> 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 >> > > --------------------------------------------------------------------- > 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