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 <[email protected]> wrote: > On 9 September 2015 at 08:14, Dan Tran <[email protected]> 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. > <profile> > <id>ci</id> > <properties> > <rat.skip>true</rat.skip> > </properties> > </profile> > > mvn -Pci > > With the profile activate rat will now be skipped. >
