jaxws:wsimport

A Maven 2 plugin which parses wsdl and binding files and produces a corresponding object model based on the JAXWS WsImport parsing engine.

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

Optional Parameters

Name Type Description
bindingDirectory File Directory containing binding files. Default value is ${basedir}/src/jaxws.
bindingFiles List List of files to use for bindings.If not specified, all .xml files in the bindingDirectory will be used.
catalog File Catalog file to resolve external entity references support TR9401, XCatalog, and OASIS XML Catalog format.
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.
httpproxy String Set HTTP/HTTPS proxy. Format is [user[:password]@]proxyHost[:proxyPort]
keep boolean Keep generated files. Default value is false.
packageName String The package in which the source files will be generated.
sourceDestDir File Specify where to place generated source files, keep is turned on with this option. Default value is ${project.build.directory}/jaxws/wsimport/java.
staleFile File The location of the flag file used to determine if the output is stale. Default value is ${project.build.directory}/jaxws/stale/.staleFlag.
target String Generate code as per the given JAXWS specification version. Version 2.0 will generate compliant code for JAXWS 2.0 spec
verbose boolean Output messages about what the tool is doing Default value is false.
wsdlDirectory File Directory containing wsdl files. Default value is ${basedir}/src/wsdl.
wsdlFiles List List of files to use for wsdls. If not specified, all .wsdl files in the wsdlDirectory will be used.
wsdlLocation String No description.
wsdlUrls List List of external wsdl urls.

Parameter Details

bindingDirectory Directory containing binding files.
  • Type: java.io.File
  • Required: No
  • Default: ${basedir}/src/jaxws

bindingFiles List of files to use for bindings.If not specified, all .xml files in the bindingDirectory will be used.
  • Type: java.util.List
  • Required: No

catalog Catalog file to resolve external entity references support TR9401, XCatalog, and OASIS XML Catalog format.
  • Type: java.io.File
  • Required: No

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

httpproxy Set HTTP/HTTPS proxy. Format is [user[:password]@]proxyHost[:proxyPort]
  • Type: java.lang.String
  • Required: No

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

packageName The package in which the source files will be generated.
  • Type: java.lang.String
  • Required: No

sourceDestDir Specify where to place generated source files, keep is turned on with this option.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/jaxws/wsimport/java

staleFile The location of the flag file used to determine if the output is stale.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/jaxws/stale/.staleFlag

target Generate code as per the given JAXWS specification version. Version 2.0 will generate compliant code for JAXWS 2.0 spec
  • Type: java.lang.String
  • Required: No

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

wsdlDirectory Directory containing wsdl files.
  • Type: java.io.File
  • Required: No
  • Default: ${basedir}/src/wsdl

wsdlFiles List of files to use for wsdls. If not specified, all .wsdl files in the wsdlDirectory will be used.
  • Type: java.util.List
  • Required: No

wsdlLocation No Description.
  • Type: java.lang.String
  • Required: No

wsdlUrls List of external wsdl urls.
  • Type: java.util.List
  • Required: No