maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicolasduminil <>
Subject Passing properties to maven POM ran from ant
Date Thu, 07 Jun 2012 11:24:11 GMT

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}" />

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

Please help.

Many thanks in advance.


View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message