You could use Jelly to create a tag instead of a goal. Then what you would
have passed as properties you pass as attributes. See the
reactor/plugin.jelly for an example but it goes something like this:
<define:taglib uri="aslak">
<define:tag name="zeus">
<echo message="The constraints are ${constraints}"/>
...
</define:tag>
</define:taglib>
That goes into the plugin.jelly you're talking about.
Then in your maven.xml (for instance) you would do:
<project ... xmlns:aslak="aslak">
<preGoal name="java:compile">
<aslak:zeus constraints="${maven.src.dir}/testdata/geek-1.0.dtd"/>
...
(There are probably some syntax errors above and if you look at the
distributed maven plugins you can probably find a much better example.)
> Hi!
>
> (Using Maven from CVS a week ago)
>
> I have written a Maven plugin for Zeus (http://zeus.enhydra.org/) that
> will invoke the Zeus DTD/Schema -> Java generator. It works just fine,
> and it defines one goal called "zeus". This goal expects some properties
> to be set (maven.zeus.constraints and maven.zeus.package).
>
> In my project (XDoclet 2) I want to invoke the zeus goal several times
> with different properties. I've tried:
>
> <preGoal name="java:compile">
> <attainGoal name="zeus">
> <property name="maven.zeus.constraints"
> value="${maven.src.dir}/testdata/geek-1.0.dtd"/>
> <property name="maven.zeus.package"
> value="xdoclet.plugins.xmlFacade.test.geek.geek_1_0"/>
> </attainGoal>
>
> <attainGoal name="zeus">
> <property name="maven.zeus.constraints"
> value="${maven.src.dir}/testdata/geek-2.0.dtd"/>
> <property name="maven.zeus.package"
> value="xdoclet.plugins.xmlFacade.test.geek.geek_2_0"/>
> </attainGoal>
> </preGoal>
>
> This doesn't work the way I want it to. The zeus goal is attained twice,
> but both times with the properties I specified in the first attainGoal.
> -But I _want_ them to be overridden.
>
> Is there some other technique I could use to achieve the desired effect?
>
> Cheers,
> Aslak
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]> For
> additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>