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.
  • Constructor Details

    • GenerateTestSourcesMojo

      public GenerateTestSourcesMojo()
  • Method Details

    • getOutputDirectory

      protected File getOutputDirectory()
      Specified by:
      getOutputDirectory in class AbstractWSDL2CodeMojo
    • addSourceRoot

      protected void addSourceRoot(org.apache.maven.project.MavenProject project, File srcDir)
      Specified by:
      addSourceRoot in class AbstractWSDL2CodeMojo
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class AbstractWSDL2CodeMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException