Hi.
but unfortunately it did not work.
>
> I'm using Maven2 and JAXB2. Maybe it is related to xjc version 2.x?
>
Well maybe you have to use the maven-jaxb2-plugin then? :))
See
http://maven-jaxb2-plugin.dev.java.net.
Here's an example:
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<extension>true</extension>
<schemaIncludes>
<schemaInclude>*.xsd</schemaInclude>
</schemaIncludes>
<args>
<arg>-Xfoo</arg>
</args>
<plugins>
<!-- This is the JAXB2 plugin dependency -->
<plugin>
<groupId>org.jvnet.jaxb2_commons
</groupId>
<artifactId>basic</artifactId>
<version>0.2-SNAPSHOT</version>
</plugin>
</plugins>
</configuration>
</execution>
</executions>
</plugin>
Come back any time with questions. Me and Kostis, we are authors'
supporters.
It's nice to see people writing JAXB2 plugins.
Bye.
/lexi