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 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, runForkedprotected void mergeOptions(List<GenericWsdlOption> effectiveWsdlOptions)
options - protected boolean shouldRun(GenericWsdlOption genericWsdlOption, File doneFile, URI wsdlURI)
shouldRun in class AbstractCodegenMohowsdlOption - doneFile - wsdlURI - 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 AbstractCodegenMohoorg.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.cxf.Bus generate(GenericWsdlOption genericWsdlOption, org.apache.cxf.Bus bus, Set<URI> classPath) throws org.apache.maven.plugin.MojoExecutionException
generate in class AbstractCodegenMohoorg.apache.maven.plugin.MojoExecutionExceptionprotected List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions() throws org.apache.maven.plugin.MojoExecutionException
createWsdlOptionsFromScansAndExplicitWsdlOptions in class AbstractCodegenMohoorg.apache.maven.plugin.MojoExecutionExceptionprotected File getGeneratedSourceRoot()
getGeneratedSourceRoot in class AbstractCodegenMohoprotected File getGeneratedTestRoot()
getGeneratedTestRoot in class AbstractCodegenMohoprotected Class<?> getForkClass()
getForkClass in class AbstractCodegenMohopublic void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractCodegenMohoorg.apache.maven.plugin.MojoExecutionExceptionprotected String getMarkerSuffix()
getMarkerSuffix in class AbstractCodegenMohoApache CXF