Thanks for the reply. I can't say I fully understand why it's needed from
within maven.xml and not from the command line, unless settings passed from
the command line are "wrapped up" and fed into maven's plugins.
I read through the wiki, and tried to get it to work with the following
block, but it's still not set correctly. Do I need to use a specific jelly
tag to execute it?
<goal name="all:install">
${pom.getPluginContext("maven-test-plugin").setVariable("maven.test.skip",
"true")}
<attainGoal name="multiproject:install-snapshot" />
</goal>
> -----Original Message-----
> From: matthew.hawthorne [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 01, 2004 10:30 AM
> To: Maven Users List
> Subject: Re: setting properties
>
> Sonnek, Ryan wrote:
> > Any pointers on how to set properties from within my maven.xml? I've
> got a
> > short custom goal to set properties, then call install:
> >
> > <goal name="all:install">
> > <j:set var="maven.test.skip" value="true" />
> > <attainGoal name="multiproject:install-snapshot" />
> > </goal>
> >
> > when I run this goal, tests are still run. If I run this from the
> command
> > line, tests are not run:
> > maven multiproject:install-snapshot -Dmaven.test.skip=true
> >
> > are properties from the command line propogated to subprojects, but
> > properties set in maven.xml not?
>
>
> There's an entry in the Maven wiki about this, named "writing maven.xml"
> or something like that.
>
> You need to set the variable so that the test plugin can see it. This
> is done like:
>
> {pom.getPluginContext("maven-test-plugin").setVariable("maven.test.skip",
> "false")}
>
> This may not be the exact syntax -- check out the wiki for the full
> details. I think
> this will get you on the right track.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]