Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
OS name: "windows xp"
When (Maven) property is not defined in <properties> section in pom.xml and (System) property is given at mvn command line, then such property is picked up properly in Ant target.
When (Maven) property is defined in <properties> section in pom.xml and (System) property is given with different value at mvn command line, such property value in Ant target is kept to one defined in the <properties> section, not one given at mvn command line; and this conflicts with how other Maven plugins treats such property value. The expectation is that it picks up the value given at the mvn command line.
The antrun.zip attachment contains a sample Maven project. please try it run like:
It will demonstrate the issue like: