Skip to content

Instantly share code, notes, and snippets.

@mpellegrini
Last active July 11, 2019 06:48
Show Gist options
  • Save mpellegrini/3294886 to your computer and use it in GitHub Desktop.
Save mpellegrini/3294886 to your computer and use it in GitHub Desktop.
maven-jaxb21-plugin with fluent-api
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb21-plugin</artifactId>
<version>0.8.3</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaDirectory>src/main/schema</schemaDirectory>
<schemaIncludes>
<include>*.xsd</include>
</schemaIncludes>
<verbose>true</verbose>
<extension>true</extension>
<specVersion>2.1</specVersion>
</configuration>
</execution>
</executions>
<configuration>
<extension>true</extension>
<verbose>true</verbose>
<args>
<arg>-Xfluent-api</arg>
</args>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-fluent-api</artifactId>
<version>3.0</version>
</plugin>
</plugins>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment