users@jaxb.java.net

RE: JAXB compilation plugin

From: Jonathan Johnson <jonjohnson_at_mail.com>
Date: Thu, 2 Mar 2006 00:54:11 -0500

> Cool. I also updated the XjcMojo a little bit. I hope you don't mind.

Your the guru. Don't be shy :-)

> I'll dig deeper tomorrow.

Yes - it not obvious. Here
(http://maven.apache.org/guides/mini/guide-configuring-plugins.html) M2
describes
how to use map settings to a custom class.

<configuration>
 <person implementation="com.mycompany.mojo.query.SuperPerson">
   <firstName>Jason</firstName>
   <lastName>van Zyl</lastName>
 </person>
</configuration>





> -----Original Message-----
> From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
> Sent: Thursday, March 02, 2006 12:39 AM
> To: users_at_jaxb.dev.java.net
> Subject: Re: JAXB compilation plugin
>
>
> Jonathan Johnson wrote:
> > Thanks Kohsuke, this works. I also see that you updated the pom for the
> > plugin. I also cleaned it up. This greatly simplifies my
> example/testing
> > pom. Below is an example pom someone could use. Notice the
> activation.jar
> > and jsr173_1.0_api.jar are transitive and no longer need to be
> defined here
> > since they are in the plugin. Once we post it on the maven
> repository the
> > <repository> would not be needed either.
>
> Cool. I also updated the XjcMojo a little bit. I hope you don't mind.
>
> > Now we just have to flesh out the <configuration>...</configuration>
> > section. ;-)
>
> I started investigating how Maven is injecting properties into a Mojo
> object. Looks like the data is coming from PlexusConfiguration object,
> which more or less look like an infoset. I'll dig deeper tomorrow.
>
>
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems kohsuke.kawaguchi_at_sun.com
>