@Mojo(name="wsgen",
defaultPhase=PROCESS_CLASSES,
requiresDependencyResolution=RUNTIME,
threadSafe=true)
public class MainWsGenMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected String |
encoding
Specify character encoding used by source files.
|
protected boolean |
genWsdl
Specify that a WSDL file should be generated in
${resourceDestDir} . |
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.
|
Constructor and Description |
---|
MainWsGenMojo() |
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() |
protected File |
getClassesDir() |
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 String |
getMain()
Main class of the tool to launch when launched as java command.
|
protected File |
getResourceDestDir() |
protected File |
getSourceDestDir() |
protected String |
getToolName()
Name of the tool to run when launched as JDK executable from JDK Toolchain.
|
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) |
protected void |
processSei(String aSei) |
@Parameter(defaultValue="false") protected boolean genWsdl
${resourceDestDir}
.@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 getResourceDestDir()
protected File getDefaultSrcOut()
protected File getClassesDir()
public void executeJaxws() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void processSei(String aSei) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected String getMain()
protected String getToolName()
protected String getExtraClasspath()
protected boolean isXnocompile()
protected void addSourceRoot(String sourceDir)
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.