@Mojo(name="wsimport",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=RUNTIME,
threadSafe=true)
public class MainWsImportMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected File |
bindingDirectory
Directory containing binding files.
|
protected List<String> |
bindingFiles
List of files to use for bindings.
|
protected String |
encoding
Specify character encoding used by source files.
|
protected boolean |
keep
Keep generated files.
|
protected org.apache.maven.plugin.descriptor.PluginDescriptor |
pluginDescriptor
Information about this plugin, used to lookup this plugin's dependencies
from the currently executing project.
|
protected org.apache.maven.project.MavenProject |
project
The Maven Project Object.
|
protected org.apache.maven.execution.MavenSession |
session
The current build session instance.
|
protected boolean |
verbose
Output messages about what the tool is doing.
|
protected List<String> |
wsdlFiles
List of files to use for WSDLs.
|
protected File |
xauthFile
Specify the location of authorization file.
|
Constructor and Description |
---|
MainWsImportMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSourceRoot(String sourceDir) |
protected void |
addVmArg(String vmArg) |
protected void |
exec(List<String> arguments) |
void |
execute() |
void |
executeJaxws() |
File[] |
getBindingFiles()
Returns a file array of xml files to translate to object models.
|
protected List<String> |
getCommonArgs() |
protected String |
getCPasString(Collection<org.apache.maven.artifact.Artifact> artifacts) |
protected File |
getDefaultSrcOut() |
protected File |
getDestDir()
Either ${build.outputDirectory} or ${build.testOutputDirectory}.
|
protected String |
getExtraClasspath() |
protected File |
getImplDestDir() |
protected String |
getMain()
Main class of the tool to launch when launched as java command.
|
protected File |
getSourceDestDir() |
protected String |
getToolName()
Name of the tool to run when launched as JDK executable from JDK Toolchain.
|
protected List<String> |
getWSDLFileLookupClasspathElements()
Returns the dependencies that should be placed on the classpath for the classloader
to lookup wsdl files.
|
protected boolean |
isArgSupported(String arg) |
protected boolean |
isExtensionOn() |
protected boolean |
isXnocompile()
Checks if compilation after code generation and let generated sources be
compiled by Maven during compilation phase.
|
protected void |
maybeUnsupportedOption(String option,
String value,
List<String> arguments) |
@Parameter protected List<String> wsdlFiles
.wsdl
files in the wsdlDirectory
will be used.@Parameter(defaultValue="${project.basedir}/src/jaxws") protected File bindingDirectory
@Parameter protected List<String> bindingFiles
.xml
files in the bindingDirectory
will be used.@Parameter protected File xauthFile
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="false") protected boolean verbose
@Parameter(defaultValue="true") protected boolean keep
@Parameter(defaultValue="${project.build.sourceEncoding}") protected String encoding
@Parameter(defaultValue="${plugin}", readonly=true) protected org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor
@Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session
protected File getDestDir()
protected File getSourceDestDir()
protected File getDefaultSrcOut()
protected File getImplDestDir()
protected List<String> getWSDLFileLookupClasspathElements()
public void executeJaxws() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected String getMain()
protected String getToolName()
protected boolean isXnocompile()
public final File[] getBindingFiles()
protected void addSourceRoot(String sourceDir)
protected String getExtraClasspath()
protected boolean isExtensionOn()
protected List<String> getCommonArgs() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected boolean isArgSupported(String arg) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void exec(List<String> arguments) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void maybeUnsupportedOption(String option, String value, List<String> arguments)
protected String getCPasString(Collection<org.apache.maven.artifact.Artifact> artifacts)
protected void addVmArg(String vmArg)
Copyright © 2020 MojoHaus. All rights reserved.