Class GenerateTestSourcesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.axis2.maven2.wsdl2code.AbstractWSDL2CodeMojo
org.apache.axis2.maven2.wsdl2code.GenerateTestSourcesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate-test-sources",
defaultPhase=GENERATE_TEST_SOURCES,
threadSafe=true)
public class GenerateTestSourcesMojo
extends AbstractWSDL2CodeMojo
Generates source code from a WSDL, for use in unit tests. This goal bind by default to the
generate-test-sources phase and adds the sources to the test sources of the project; it is
otherwise identical to the axis2-wsdl2code:generate-sources goal.
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSourceRoot(org.apache.maven.project.MavenProject project, File srcDir) voidexecute()protected FileMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
GenerateTestSourcesMojo
public GenerateTestSourcesMojo()
-
-
Method Details
-
getOutputDirectory
- Specified by:
getOutputDirectoryin classAbstractWSDL2CodeMojo
-
addSourceRoot
- Specified by:
addSourceRootin classAbstractWSDL2CodeMojo
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractWSDL2CodeMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-