jaxws:wsgen

A Maven 2 plugin which reads a service endpoint implementation class and generates all of the portable artifacts for a JAX-WS web service.

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Requires dependency resolution of artifacts in scope: runtime
  • Automatically executes within the lifecycle phase: generate-sources

Required Parameters

Name Type Description
sei String service endpoint implementation class name.

Optional Parameters

Name Type Description
destDir File Specify where to place output generated classes Set to "" to turn it off Default value is ${project.build.outputDirectory}.
extension boolean Allow to use the JAXWS Vendor Extensions. Default value is false.
genWsdl boolean Specify that a WSDL file should be generated in ${resourceDestDir} Default value is false.
keep boolean Keep generated files. Default value is false.
protocol String Used in conjunction with genWsdl to specify the protocol to use in the wsdl:binding. Value values are "soap1.1" or "Xsoap1.2", default is "soap1.1". "Xsoap1.2" is not standard and can only be used in conjunction with the -extensions option
resourceDestDir File Directory containing the generated wsdl files. Default value is ${project.build.directory}/jaxws/wsgen/wsdl.
sourceDestDir File Specify where to place generated source files, keep is turned on with this option.
verbose boolean Output messages about what the tool is doing Default value is false.

Parameter Details

destDir Specify where to place output generated classes Set to "" to turn it off
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.outputDirectory}

extension Allow to use the JAXWS Vendor Extensions.
  • Type: boolean
  • Required: No
  • Default: false

genWsdl Specify that a WSDL file should be generated in ${resourceDestDir}
  • Type: boolean
  • Required: No
  • Default: false

keep Keep generated files.
  • Type: boolean
  • Required: No
  • Default: false

protocol Used in conjunction with genWsdl to specify the protocol to use in the wsdl:binding. Value values are "soap1.1" or "Xsoap1.2", default is "soap1.1". "Xsoap1.2" is not standard and can only be used in conjunction with the -extensions option
  • Type: java.lang.String
  • Required: No

resourceDestDir Directory containing the generated wsdl files.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/jaxws/wsgen/wsdl

sei service endpoint implementation class name.
  • Type: java.lang.String
  • Required: Yes

sourceDestDir Specify where to place generated source files, keep is turned on with this option.
  • Type: java.io.File
  • Required: No

verbose Output messages about what the tool is doing
  • Type: boolean
  • Required: No
  • Default: false