Re: How to override POM properties from CLI

2008-02-07 Thread Igor Romanov
Thank you for reply. Are you saying that properties specified in POM can not be overridden with -D option? Igor Wayne Fay wrote: > > You should put the properties in different profiles, and then specify > which profile using -Penv1 when running Maven. > > Wayne > -- View this message in c

How to override POM properties from CLI

2008-02-07 Thread Igor Romanov
Hello, I have properties in a POM file I need to be able to override with command line –D option, to run build in a different environments. How can I do this? Simple example below doesn't work as I expect it should, i.e. test.txt will contain FALSE after running c:\temp\module> mvn -Dtest.result