Package org.jvnet.jax_ws_commons.jaxws
Class MainWsImportMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jvnet.jax_ws_commons.jaxws.MainWsImportMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="wsimport",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=RUNTIME)
public class MainWsImportMojo
extends org.apache.maven.plugin.AbstractMojo
Parses wsdl and binding files and generates Java code needed to access it.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileDirectory containing binding files.List of files to use for bindings.protected org.sonatype.plexus.build.incremental.BuildContextprotected StringSpecify character encoding used by source files.protected booleanKeep generated files.protected org.apache.maven.plugin.descriptor.PluginDescriptorprotected org.apache.maven.project.MavenProjectThe Maven Project Object.protected booleanOutput messages about what the tool is doing.List of files to use for WSDLs.protected FileSpecify the location of authorization file.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSourceRoot(String sourceDir) protected voidvoidexecute()final File[]Returns a file array of xml files to translate to object models.protected Fileprotected FileEither ${build.outputDirectory} or ${build.testOutputDirectory}.protected String[]protected Stringprotected String[]protected Fileprotected StringgetMain()protected Fileprotected booleanprotected booleanisArgSupported(String arg) protected booleanprotected voidmaybeUnsupportedOption(String option, String value, List<String> args) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
wsdlFiles
List of files to use for WSDLs. If not specified, all.wsdlfiles in thewsdlDirectorywill be used. -
bindingDirectory
Directory containing binding files. -
bindingFiles
List of files to use for bindings. If not specified, all.xmlfiles in thebindingDirectorywill be used. -
xauthFile
Specify the location of authorization file. -
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject projectThe Maven Project Object. -
verbose
@Parameter(defaultValue="false") protected boolean verboseOutput messages about what the tool is doing. -
keep
@Parameter(defaultValue="true") protected boolean keepKeep generated files. -
encoding
Specify character encoding used by source files. -
pluginDescriptor
@Parameter(defaultValue="${plugin}", readonly=true) protected org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor -
buildContext
@Component protected org.sonatype.plexus.build.incremental.BuildContext buildContext
-
-
Constructor Details
-
MainWsImportMojo
public MainWsImportMojo()
-
-
Method Details
-
getDestDir
Either ${build.outputDirectory} or ${build.testOutputDirectory}. -
getSourceDestDir
-
getDefaultSrcOut
-
getImplDestDir
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getMain
-
getXnocompile
protected boolean getXnocompile() -
getBindingFiles
Returns a file array of xml files to translate to object models.- Returns:
- An array of schema files to be parsed by the schema compiler.
-
addSourceRoot
-
getExtraClasspath
-
isExtensionOn
protected boolean isExtensionOn() -
getCommonArgs
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
isArgSupported
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
exec
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
maybeUnsupportedOption
-
getExtraDependencies
-
getExtraArtifactIDs
-