Skip to content
highsource edited this page Oct 12, 2014 · 6 revisions

Using JAXB plugins

  • plugins/plugin - Configures artifacts of the custom JAXB2 plugins you want to use.
  • args/arg - A list of extra XJC's command-line arguments (items must include the dash "-"). Use this argument to enable the JAXB2 plugin you want to use.

Example:

<configuration>
	<extension>true</extension>
	<args>
		<arg>-XtoString</arg>
		<arg>-Xequals</arg>
		<arg>-XhashCode</arg>
		<arg>-Xcopyable</arg>
	</args>
	<plugins>
		<plugin>
			<groupId>org.jvnet.jaxb2_commons</groupId>
			<artifactId>jaxb2-basics</artifactId>
			<version><!-- version --></version>
		</plugin>
	</plugins>
</configuration>

See the sample JAXB plugins project for example.

YO DAWG I HERD U LIKE PLUGGINZ SO WE PUT PLUGGINZ IN YO PLUGGINZ SO U CAN RUN PLUGGINZ WHEN YOU RUN PLUGGINZ

Clone this wiki locally