@Mojo(name="wsdl2java", defaultPhase=GENERATE_SOURCES, threadSafe=true, requiresDependencyResolution=TEST) public class WSDL2JavaMojo extends AbstractCodegenMoho
buildContext, classesDirectory, disableDependencyScan, disableDirectoryScan, excludes, fork, includes, markerDirectory, pluginArtifacts, project, testWsdlRoot, useCompileClasspath, wsdlRoot
Constructor and Description |
---|
WSDL2JavaMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
createMarkerFile(GenericWsdlOption wsdlOption,
File doneFile,
URI wsdlURI) |
protected List<GenericWsdlOption> |
createWsdlOptionsFromScansAndExplicitWsdlOptions() |
void |
execute() |
protected org.apache.cxf.Bus |
generate(GenericWsdlOption genericWsdlOption,
org.apache.cxf.Bus bus,
Set<URI> classPath) |
protected List<String> |
generateCommandLine(GenericWsdlOption wsdlOption) |
protected URI |
getBaseFileURI(URI uri)
Finds the base file URI that 'contains' the given URI.
|
protected Class<?> |
getForkClass() |
protected File |
getGeneratedSourceRoot() |
protected File |
getGeneratedTestRoot() |
protected String |
getMarkerSuffix() |
protected long |
getTimestamp(URI uri)
Finds the timestamp for a given URI.
|
protected void |
mergeOptions(List<GenericWsdlOption> effectiveWsdlOptions)
Merge WsdlOptions that point to the same file by adding the extraargs to the first option and deleting
the second from the options list
|
protected boolean |
shouldRun(GenericWsdlOption genericWsdlOption,
File doneFile,
URI wsdlURI)
Determine if code should be generated from the given wsdl
|
addPluginArtifact, configureProxyServerSettings, deleteDir, downloadRemoteWsdls, forkOnce, getDoneFile, getWsdlFile, getWsdlURI, runForked
protected void mergeOptions(List<GenericWsdlOption> effectiveWsdlOptions)
options
- protected boolean shouldRun(GenericWsdlOption genericWsdlOption, File doneFile, URI wsdlURI)
shouldRun
in class AbstractCodegenMoho
wsdlOption
- doneFile
- wsdlURI
- protected void createMarkerFile(GenericWsdlOption wsdlOption, File doneFile, URI wsdlURI) throws IOException
createMarkerFile
in class AbstractCodegenMoho
IOException
protected long getTimestamp(URI uri)
getBaseFileURI(URI)
prior to the timestamp
check in order to handle "classpath" and "jar" URIs.uri
- the URI to timestampprotected URI getBaseFileURI(URI uri)
uri
- the URI to resolveprotected List<String> generateCommandLine(GenericWsdlOption wsdlOption) throws org.apache.maven.plugin.MojoExecutionException
generateCommandLine
in class AbstractCodegenMoho
org.apache.maven.plugin.MojoExecutionException
protected org.apache.cxf.Bus generate(GenericWsdlOption genericWsdlOption, org.apache.cxf.Bus bus, Set<URI> classPath) throws org.apache.maven.plugin.MojoExecutionException
generate
in class AbstractCodegenMoho
org.apache.maven.plugin.MojoExecutionException
protected List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions() throws org.apache.maven.plugin.MojoExecutionException
createWsdlOptionsFromScansAndExplicitWsdlOptions
in class AbstractCodegenMoho
org.apache.maven.plugin.MojoExecutionException
protected File getGeneratedSourceRoot()
getGeneratedSourceRoot
in class AbstractCodegenMoho
protected File getGeneratedTestRoot()
getGeneratedTestRoot
in class AbstractCodegenMoho
protected Class<?> getForkClass()
getForkClass
in class AbstractCodegenMoho
public void execute() throws org.apache.maven.plugin.MojoExecutionException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractCodegenMoho
org.apache.maven.plugin.MojoExecutionException
protected String getMarkerSuffix()
getMarkerSuffix
in class AbstractCodegenMoho
Apache CXF