users@jaxb.java.net

Re: Maven 2 Jaxb2 plugin use

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 10 Apr 2006 18:25:43 -0700

William Simons wrote:
> Quick question about the POM for a project utilizing the plugin...or jaxb2
> in general.
>
> I understand that I only need to include jaxb-api and jaxb-impl as
> dependencies to compile my sources. However, should I be including
> activation as a runtime dependency and jsr173_1.0 as a compile time
> dependency since they will be needed by any project that utilizes my newly
> generated xml?
>
> Actually, if you included it in the poms for the jaxb-api or jaxb-impl that
> would solve this too.

Yes. I think the right thing to do is for jaxb-impl to have a transitive
dependency on jaxb-api, then jaxb-api to list jsr173_1.0 and activation
as dependencies.

The problem is that I don't know how to write those POMs. If you do,
send them along so that I can integrate them :-)


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com