You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vinay Srinivasaiah <vs...@spikesource.com> on 2004/04/16 22:10:59 UTC

Passing params to sub-project

Hi,

I have a scenario with one maven goal calling another maven goal in a
different directory.

parent maven.xml looks like this.

<goal name="test">
    <j:set var="param1" value="value1"/>

    <!-- call the other goal -->
    <m:maven descriptor="inner/project.xml" goals="test-inner"
        ignoreFailures="false"/>
</goal>

The inner/maven.xml looks like,

<goal name="test-inner">
    <echo>In Inner param1 = '${param1}'</echo>
</goal>

I cannot get maven to pass the variable 'param1' into the sub-project.

How do i do this?

Thanks,
Vinay


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org