On Wed, Dec 10, 2008 at 12:33 PM, Anders Hammar <and...@hammar.net> wrote:
>
> Hi,
>
> Try the 'schemaDirectory' parameter. It's documented here:
> http://mojo.codehaus.org/jaxb2-maven-plugin/xjc-mojo.html

There are many jaxb plugins. We have tried

the codehaus mojo one, this one

       <groupId>com.sun.tools.xjc.maven2</groupId>
        <artifactId>maven-jaxb-plugin</artifactId>

and

        <groupId>org.jvnet.jaxb2.maven2</groupId>
        <artifactId>maven-jaxb2-plugin</artifactId>

We've settled on the last one as it allowed us to easily pass jaxb extensions:

          <args>
            <arg>-Xdefault-value</arg>
          </args>
          <plugins>
            <plugin>
              <groupId>org.jvnet.jaxb2_commons</groupId>
              <artifactId>default-value</artifactId>
              <version>0.1-20071022</version> <!-- Downloaded from
https://jaxb2-commons.dev.java.net/ Version number defined after last
change in CVS... -->
            </plugin>

J

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to