Package org.jvnet.jax_ws_commons.jaxws
Class MainWsGenMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jvnet.jax_ws_commons.jaxws.MainWsGenMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="wsgen",
defaultPhase=PROCESS_CLASSES,
requiresDependencyResolution=RUNTIME)
public class MainWsGenMojo
extends org.apache.maven.plugin.AbstractMojo
Reads a JAX-WS service endpoint implementation class
and generates all of the portable artifacts for a JAX-WS web service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.sonatype.plexus.build.incremental.BuildContextprotected StringSpecify character encoding used by source files.protected booleanSpecify that a WSDL file should be generated in${resourceDestDir}.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.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSourceRoot(String sourceDir) protected voidvoidexecute()protected Fileprotected Fileprotected FileEither ${build.outputDirectory} or ${build.testOutputDirectory}.protected String[]protected Stringprotected String[]protected booleanprotected StringgetMain()protected Fileprotected FilegetWsGenArgs(String aSei, boolean attachResources) Construct wsgen argumentsprotected booleanprotected booleanisArgSupported(String arg) protected booleanprotected voidmaybeUnsupportedOption(String option, String value, List<String> args) protected voidprocessSei(String sei) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
genWsdl
@Parameter(defaultValue="false") protected boolean genWsdlSpecify that a WSDL file should be generated in${resourceDestDir}. -
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
-
MainWsGenMojo
public MainWsGenMojo()
-
-
Method Details
-
getDestDir
Either ${build.outputDirectory} or ${build.testOutputDirectory}. -
getSourceDestDir
-
getResourceDestDir
-
getDefaultSrcOut
-
getClassesDir
-
getGenWSDL
protected boolean getGenWSDL() -
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
processSei
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getMain
-
getExtraClasspath
-
getXnocompile
protected boolean getXnocompile() -
getWsGenArgs
protected List<String> getWsGenArgs(String aSei, boolean attachResources) throws org.apache.maven.plugin.MojoExecutionException Construct wsgen arguments- Parameters:
aSei- web serviceattachResources- true to attach resources to the project- Returns:
- a list of arguments
- Throws:
org.apache.maven.plugin.MojoExecutionException- for errors
-
addSourceRoot
-
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
-