@Mojo(name="wsdl2java",
defaultPhase=GENERATE_SOURCES,
threadSafe=true,
requiresDependencyResolution=TEST)
public class WSDL2JavaMojo
extends AbstractCodegenMojo
buildContext, classesDirectory, disableDependencyScan, disableDirectoryScan, excludes, fork, includes, markerDirectory, pluginArtifacts, project, skipGarbageCollection, 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, runForkedprotected void mergeOptions(List<GenericWsdlOption> effectiveWsdlOptions)
effectiveWsdlOptions - protected boolean shouldRun(GenericWsdlOption genericWsdlOption, File doneFile, URI wsdlURI)
shouldRun in class AbstractCodegenMojogenericWsdlOption - doneFile - wsdlURI - protected void createMarkerFile(GenericWsdlOption wsdlOption, File doneFile, URI wsdlURI) throws IOException
createMarkerFile in class AbstractCodegenMojoIOExceptionprotected 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 AbstractCodegenMojoorg.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 AbstractCodegenMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions() throws org.apache.maven.plugin.MojoExecutionException
createWsdlOptionsFromScansAndExplicitWsdlOptions in class AbstractCodegenMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected File getGeneratedSourceRoot()
getGeneratedSourceRoot in class AbstractCodegenMojoprotected File getGeneratedTestRoot()
getGeneratedTestRoot in class AbstractCodegenMojoprotected Class<?> getForkClass()
getForkClass in class AbstractCodegenMojopublic void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractCodegenMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected String getMarkerSuffix()
getMarkerSuffix in class AbstractCodegenMojoApache CXF