Greetings,
I need to execute a mavem pom from an ant script. here is the code of the
ant script:
<?xml version="1.0"?>
<project name="...">
<target name="...">
<echo message="smx.home ${smx.home}" />
<exec dir="." executable="cmd">
<arg value="/c"/>
<arg value="mvn"/>
<arg line="scm:bootstrap -Dsmx.home=${smx.home}" />
</exec>
</target>
</project>
The property smx.home is correctly displayed in the echo task but, as soon
in the maven pom it's definition is lost. However, it is defined with
-Dsms.home=${smx.home} and, in the maven pom it is referenced as
${smx.home}.
Please help.
Many thanks in advance.
Nicolas
--
View this message in context:
http://maven.40175.n5.nabble.com/Passing-properties-to-maven-POM-ran-from-ant-tp5710940.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]