Skip to content

Instantly share code, notes, and snippets.

@vshank77
Created January 24, 2012 18:14
Show Gist options
  • Select an option

  • Save vshank77/1671621 to your computer and use it in GitHub Desktop.

Select an option

Save vshank77/1671621 to your computer and use it in GitHub Desktop.
Using Jaxb to generate Java files from Schema
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.7.5</version>
<configuration>
<schemaDirectory>src/main/resources/schema</schemaDirectory>
<generateDirectory>src/main/generated</generateDirectory>
<generatePackage>com.ubs.ontolo.zthes.schema</generatePackage>
<episode>false</episode>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics</artifactId>
<version>0.5.3</version>
</plugin>
</plugins>
</configuration>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment