Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated to show how to use extraargs.

...

Other configuration arguments can be include included inside the <wsdlOption> element. These pass arguments to the tooling and correspond to the options outlined on the WSDL To Java page, for example:

Code Block
xml
xml

...
<wsdlOptions>
	<wsdlOption>
		<wsdl>${basedir}/src/main/wsdl/myService.wsdl</wsdl>
                <extraargs>
                    <extraarg>-impl</extraarg>
                    <extraarg>-verbose</extraarg>
                </extraargs>
	</wsdlOption>
</wsdlOptions>
...

For CXF 2.1.4 and latter you don't need anymore to specify the <phase>, as generate-sources is the default.
For CXF 2.2 and latter you don't even need to specify the <sourceRoot> to match maven convention for using target/generated-sources/cxf as output folder for generated classes.

...