maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicolasduminil <nicolas.dumi...@simplex-software.fr>
Subject Passing properties to maven POM ran from ant
Date Thu, 07 Jun 2012 11:24:11 GMT
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message