users@jaxb.java.net

Re: maven-jaxb1-plugin - run xjc for test sources

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 06 Dec 2006 15:59:31 -0800

Gregory Kick wrote:
> Hey guys,
>
> You're definitely on track with what I was thinking. The only other
> plugin that I've ever seen implement something like this is the
> xmlbeans plugin, which has a whole seperate goal for it. I think that
> the flag makes more sense.

Perhaps I'm too late, but the general practice for doing this is that
the Maven plugin creates one Abstract Mojo that does most of the work,
then derive two actual Mojos from there --- one for source and the other
for test-source.

This is done not only for code generators but also for report generators
like sorcerer or javadoc.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com