users@jaxb.java.net

Re: Maven 2 Jaxb2 plugin use

From: William Simons <william.simons_at_childrens.harvard.edu>
Date: Wed, 12 Apr 2006 11:01:50 -0400

That looks good to me (sans the leading "/" in dependencies). Also, the
activation jar as a runtime dependency is important. Try:
    <dependencies>
        <dependency>
            <groupId>jaxb</groupId>
            <artifactId>jsr173_api</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>jaxb</groupId>
            <artifactId>activation</artifactId>
            <version>1.0.2</version>
            <scope>runtime</scope>
        </dependency>
    </dependencies>


Bill


On 4/10/06 11:48 PM, "Jonathan Johnson" <jonjohnson_at_mail.com> wrote:

> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>