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 73B4E185ED for ; Thu, 10 Mar 2016 22:42:33 +0000 (UTC) Received: (qmail 6027 invoked by uid 500); 10 Mar 2016 22:42:32 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 5958 invoked by uid 500); 10 Mar 2016 22:42:32 -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 5946 invoked by uid 99); 10 Mar 2016 22:42:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2016 22:42:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 624DD1806D3 for ; Thu, 10 Mar 2016 22:42:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.351 X-Spam-Level: * X-Spam-Status: No, score=1.351 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (768-bit key) header.d=springdot.org Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id gO6mdAgZ7IPu for ; Thu, 10 Mar 2016 22:42:30 +0000 (UTC) Received: from gproxy1-pub.mail.unifiedlayer.com (gproxy1-pub.mail.unifiedlayer.com [69.89.25.95]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id B69445F572 for ; Thu, 10 Mar 2016 22:42:29 +0000 (UTC) Received: (qmail 5908 invoked by uid 0); 10 Mar 2016 22:42:21 -0000 Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy1.mail.unifiedlayer.com with SMTP; 10 Mar 2016 22:42:21 -0000 Received: from box547.bluehost.com ([74.220.219.147]) by cmgw4 with id UNiJ1s00j3BQY5W01NiMwL; Thu, 10 Mar 2016 15:42:21 -0700 X-Authority-Analysis: v=2.1 cv=aJ5j99Nm 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=Wcn2VZKwRpAA:10 a=7OsogOcEt9IA:10 a=NEAV23lmAAAA:8 a=mV9VRH-2AAAA:8 a=6GX0f1tFsyYNJoa32AgA: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=DgoinDiE2/btKHTNJV59LtFQcXkZ5uMsZ01hfQu/uB0=; b=yn3MMeLPGYQIVPCMe5qhJMq/mW mKRx9Kyt2ka+UeiLktAEOXAUB7ZTheFwqq1e+wUvxVctB6mpl4a6hepcNkCr35+3PVUlkaplxM41P MKrWtZiychvWHsF3oOjY9LPyb; Received: from [128.107.241.164] (port=48037 helo=[10.21.172.84]) by box547.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ae9He-0004lp-Gx; Thu, 10 Mar 2016 15:42:18 -0700 Subject: Re: "conditional" parent POM? To: users@maven.apache.org References: <56E1D728.5010405@springdot.org> <20160310204059.AC3AD29C1CA3@dd17332.kasserver.com> From: Max Spring Message-ID: <56E1F847.60600@springdot.org> Date: Thu, 10 Mar 2016 14:42:15 -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: <20160310204059.AC3AD29C1CA3@dd17332.kasserver.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 128.107.241.164 authed with m2spring+springdot.org} Hi Manfred, you're right, "property-injection" is what I want. I updated my example: https://github.com/m2spring/wild-inhouse-hybrid-example/tree/property-approach Thank you! Regards, -Max On 03/10/2016 12:40 PM, Manfred Moser wrote: > You should not use different rool poms. The whole upstream parents for your open source project should be open source as well. > > And if you want to deploy to a different repo manager you can make the URLs configurable as a property that you set in the pom and e.g. override in your internal setup via settings.xml. > > Manfred > > Max Spring wrote on 2016-03-10 12:20: > >> 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