I think all you have to do is add this to the jaxb-api pom.xml and Maven 2
will ensure both jaxb-api and jsr173 are pulled when running xjc.
</dependencies>
<dependency>
<groupId>jaxb</groupId>
<artifactId>jsr173_api</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
-----Original Message-----
From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
Sent: Monday, April 10, 2006 9:26 PM
To: users_at_jaxb.dev.java.net
Subject: Re: Maven 2 Jaxb2 plugin use
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