users@jaxb.java.net

Re: Maven Plugins - Which is best?

From: jlim <jlim_at_exist.com>
Date: Sun, 27 Jul 2008 07:02:07 -0700 (PDT)

Hi Josh,

Here's an example used in the Apache Camel project :


      <plugin>
        <groupId>com.sun.tools.jxc.maven2</groupId>
        <artifactId>maven-jaxb-schemagen-plugin</artifactId>
        <version>1.3-snapshot</version>
        <executions>
          <execution>
            <phase>process-sources</phase>
            <configuration>
              <destdir>${project.build.directory}/schema</destdir>
              <srcdir>${project.build.directory}/schema-src</srcdir>
              <schemas>
                <schema>
                 
<namespace>http://activemq.apache.org/camel/schema/spring</namespace>
                  <file>camel-spring.xsd</file>
                </schema>
              </schemas>
              <!--<verbose>false</verbose>-->
            </configuration>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

Regards,
Jonas



Joshua Smith-5 wrote:
>
> Does anyone have some snippets from their POM that use the schemagen
> plugin
> that they could post? The web site doesn't seem to have any examples.
>
> Thanks,
> Josh
>
> On Wed, Jul 9, 2008 at 10:23 AM, Joshua Smith <josh_at_rationalpi.com> wrote:
>
>> Thank you.
>>
>> Josh
>>
>>
>> On Wed, Jul 9, 2008 at 9:41 AM, Aleksei Valikov <valikov_at_gmx.net> wrote:
>>
>>> Hi.
>>>
>>> > Thanks for the information.
>>> >
>>> > We're doing schema generation from annotated Java classes. Is your
>>> plugin
>>> > still the correct choice or is the schema generation plugin?
>>>
>>> It's the schemagen plugin then.
>>>
>>> maven-jaxb2-plugin is only for schema-to-java.
>>>
>>> Bye.
>>> /lexi
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>>> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>>>
>>>
>>
>
>

-- 
View this message in context: http://www.nabble.com/Maven-Plugins---Which-is-best--tp18348958p18676677.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.