users@jaxb.java.net

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

From: Kostis Anagnostopoulos <ankostis_at_gmail.com>
Date: Sun, 10 Dec 2006 01:28:15 +0200

On 12/8/06, Gregory Kick <gk5885_at_gmail.com> wrote:
> Kostis,
>
> Actually, despite the fact that I still think that creating the extra
> goal is worthwhile from a usage standpoint, I agree that all of the
> duplication is a bit silly. Unfortunately, I think that it's just a
> design flaw in maven. Because the lifecycle seems to be nothing more
> than descriptive labels to which plugin goals can be attached, there
> is no mechanism for recognizing the similarity between, say,
> generate-sources and generate-test-soucres. As a consequence, there's
> bound to be duplication when you define lifecycle phases the way that
> they did.
>
> As Kohsuke mentioned, there are quite a few examples out there. Take
> a look at, compile, resources and jxr to start.
>
> Honestly, as much as I love Maven and recommend it to everyone, I'm
> becoming less and less impressed with some of the underlying design
> choices. Between the shortcomings in the lifecycle, the strange,
> undocumented, proprietary frameworks that are only used in Maven (e.g.
> plexus, modello, doxia) and some of the POM semantics, I find myself
> wondering long it's going to be before somebody decides that Maven 3
> is going to be a re-rewrite. Yeah, that's probably a bit
> melodramatic, but nonetheless...
>
> Anyway, the point was that regardless of the fact that it seems silly
> to have to do it, I find it to be much less of a hassle to have an
> extra goal than to have to create an extra project. Two classes one
> time seems to be a better time investment than two poms every time I
> need to test against jaxb-generated sources.

I agree without any doubt about your comments for maven3's arcane
frameworks (but i also recommend it to everyone).
If you see maven3 around the corner, please call me to participate :-).

I know this will sound very superfluous for my part, but i decided to
add the 'addToTestSources' param mostly because i agree with your
maven criticism.

Please wait till Monday-Tuesday for the 10.-rc8. Please tell me what
other relative features you think are necessary. I will try to study
the plugins you say, but i don't think we should copy all the
functionality the compiler plugin provides.

NOTE: Now that I'm writing this mail it is Saturday late night, here
in Greece, and i'm preparing for sleep. So forgive my funny way of
thinking.


Cheers,
  Kostis