Hi, 

how can you set a variable using the maven.xml file which normally is
set using the -D attribute at runtime.

I want to create a custom target "myproject:webapp" which calls:

        maven -Dgoal=webapp multiproject:goal

I currently do:

<goal name="myproject:deploy" description="Build the projects webapps">
    <j:set var"goal value="war:webapp" />
    <maven:maven descriptor="${basedir}/project.xml" 
        goals="multiproject:goal" />
</goal>

Bud this does not seem to wrok. Any ideas?

Regards,

Joel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to