Skip to content

Instantly share code, notes, and snippets.

@mpellegrini
Last active December 11, 2018 11:32
Show Gist options
  • Save mpellegrini/3294895 to your computer and use it in GitHub Desktop.
Save mpellegrini/3294895 to your computer and use it in GitHub Desktop.
maven-jaxb-schemagen-plugin config
<plugin>
<groupId>com.sun.tools.jxc.maven2</groupId>
<artifactId>maven-jaxb-schemagen-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<destdir>${project.build.directory}/generated-sources/schemas</destdir>
<srcdir>${project.build.sourceDirectory}</srcdir>
<includes>
<include>**/model/*</include>
</includes>
<verbose>true</verbose>
<schemas>
<schema>
<namespace>http://my/namespace</namespace>
<file>filename.xsd</file>
</schema>
</schemas>
</configuration>
</plugin>
@Nanduyana
Copy link

does this work with jdk1.8 too ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment