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 DC2B817E61 for ; Wed, 9 Sep 2015 00:00:44 +0000 (UTC) Received: (qmail 23817 invoked by uid 500); 9 Sep 2015 00:00:42 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 23745 invoked by uid 500); 9 Sep 2015 00:00:42 -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 23733 invoked by uid 99); 9 Sep 2015 00:00:42 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2015 00:00:42 +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 D97D718099E for ; Wed, 9 Sep 2015 00:00:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 348P9nOA1GLs for ; Wed, 9 Sep 2015 00:00:36 +0000 (UTC) Received: from mail-ig0-f170.google.com (mail-ig0-f170.google.com [209.85.213.170]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 0419F2078E for ; Wed, 9 Sep 2015 00:00:36 +0000 (UTC) Received: by igbkq10 with SMTP id kq10so87284959igb.0 for ; Tue, 08 Sep 2015 17:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=QueWJ4tAeIlrgZKOMB+B3i+oBQe3Y7ZAKjHG2sM8cVg=; b=eBrwtDuqCb2580s3PCWvba09wERMd6+r4W7tvJhtzPczLfAH345FjQkEdqYSynfcpW M3pBxnXR1uTVRKw5LnyAYTZ6JaWVL5DyWo9iNzOi1H6I5W2fYXXJerb15jUKYh+dbZ5r IaV9p8tJ3TopOn4xqIzYoSgp/BjOU9R28Nz6Xjks5kY0YX05B4VO5dQxo3Q5LaRLuDXD vzUat3wHI7aeJBt6xhUqkQvbAQPMflt1nVE0bzitRUC3CPbqj0KgASx6r3qK6r5euPUq wcU13bLdH0PRmYZj0LAidm3Qaxagpcb2dY5jOdtoNoeQOzzjn4+D8VWUcRO7JoQnSi6R m2Sw== MIME-Version: 1.0 X-Received: by 10.50.21.10 with SMTP id r10mr47735425ige.94.1441756835425; Tue, 08 Sep 2015 17:00:35 -0700 (PDT) Received: by 10.36.248.66 with HTTP; Tue, 8 Sep 2015 17:00:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 8 Sep 2015 17:00:35 -0700 Message-ID: Subject: Re: Replacing a bunch of -Dkey=value pairs using external file From: Dan Tran To: Maven Users List Content-Type: multipart/alternative; boundary=047d7b86eeae0734bc051f452cf7 --047d7b86eeae0734bc051f452cf7 Content-Type: text/plain; charset=UTF-8 Hi Barrie, That would work. On caveat, I have to instruct my user to edit their own settings.xml. Would be nice if I can just pass in -fp xxx from command line Thanks -Dan On Tue, Sep 8, 2015 at 4:46 PM, Barrie Treloar wrote: > On 9 September 2015 at 08:14, Dan Tran wrote: > > > Hi > > > > I have a scenario where I use a maven reactor multi-modules build to > > orchestrate a vmware OVA build from scratch ( start with ISO, create > > initial VM, apply additional provisioning, export to OVA, deploy, and > test) > > > > The poms have properties which can be overridden via -Dx=y to build on > > non-default environment, but there are too many to account for > > > > So far I found > > > > > http://www.mojohaus.org/properties-maven-plugin/set-system-properties-mojo.html > > but the initial experiment is not good. > > > > Perhaps, this feature must come from maven core? if so, is it a lot of > > effort to add this feature? and how? > > > > is there a similar need like this from Maven community? > > > > Advice is greatly appreciated > > > > Put the properties into a profile in ~/.m2/settings.xml and then activate > it via -P > e.g. > > ci > > true > > > > mvn -Pci > > With the profile activate rat will now be skipped. > --047d7b86eeae0734bc051f452cf7--