Class WSDL2JavaScriptMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.cxf.maven_plugin.AbstractCodegenMojo
org.apache.cxf.maven_plugin.wsdl2js.WSDL2JavaScriptMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="wsdl2js",
defaultPhase=GENERATE_SOURCES,
threadSafe=true,
requiresDependencyResolution=TEST)
public class WSDL2JavaScriptMojo
extends AbstractCodegenMojo
-
Field Summary
Fields inherited from class org.apache.cxf.maven_plugin.AbstractCodegenMojo
buildContext, classesDirectory, disableDependencyScan, disableDirectoryScan, excludes, fork, includes, markerDirectory, pluginArtifacts, project, skipGarbageCollection, testWsdlRoot, useCompileClasspath, wsdlRoot
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<GenericWsdlOption>
protected Bus
generate
(GenericWsdlOption genericWsdlOption, Bus bus, Set<URI> classPath) protected Class<?>
protected File
protected File
protected String
static List<GenericWsdlOption>
loadWsdlOptionsFromDependencies
(org.apache.maven.project.MavenProject project, Option defaultOptions, File outputDir) protected void
mergeOptions
(List<GenericWsdlOption> effectiveWsdlOptions) protected boolean
shouldRun
(GenericWsdlOption genericWsdlOption, File doneFile, URI wsdlURI) Determine if code should be generated from the given wsdlMethods inherited from class org.apache.cxf.maven_plugin.AbstractCodegenMojo
addPluginArtifact, configureProxyServerSettings, createMarkerFile, deleteDir, downloadRemoteWsdls, execute, forkOnce, generateCommandLine, getDoneFile, getWsdlFile, getWsdlURI, runForked
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
WSDL2JavaScriptMojo
public WSDL2JavaScriptMojo()
-
-
Method Details
-
generate
protected Bus generate(GenericWsdlOption genericWsdlOption, Bus bus, Set<URI> classPath) throws org.apache.maven.plugin.MojoExecutionException - Specified by:
generate
in classAbstractCodegenMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getGeneratedSourceRoot
- Specified by:
getGeneratedSourceRoot
in classAbstractCodegenMojo
-
getGeneratedTestRoot
- Specified by:
getGeneratedTestRoot
in classAbstractCodegenMojo
-
shouldRun
Description copied from class:AbstractCodegenMojo
Determine if code should be generated from the given wsdl- Specified by:
shouldRun
in classAbstractCodegenMojo
- Returns:
-
mergeOptions
-
createWsdlOptionsFromScansAndExplicitWsdlOptions
protected List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
createWsdlOptionsFromScansAndExplicitWsdlOptions
in classAbstractCodegenMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
loadWsdlOptionsFromDependencies
public static List<GenericWsdlOption> loadWsdlOptionsFromDependencies(org.apache.maven.project.MavenProject project, Option defaultOptions, File outputDir) -
getForkClass
- Specified by:
getForkClass
in classAbstractCodegenMojo
-
getMarkerSuffix
- Specified by:
getMarkerSuffix
in classAbstractCodegenMojo
-