Class GenerateTestSourcesMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.axis2.maven.xsd2java.AbstractXSD2JavaMojo
org.apache.axis2.maven.xsd2java.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 AbstractXSD2JavaMojo
Generates Java classes from the specified schema files, for use in unit tests. This goal binds 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-xsd2java:generate-sources goal.
  • Constructor Details

    • GenerateTestSourcesMojo

      public GenerateTestSourcesMojo()
  • Method Details

    • getOutputDirectory

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

      protected void addSourceRoot(org.apache.maven.project.MavenProject project)
      Specified by:
      addSourceRoot in class AbstractXSD2JavaMojo
    • 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 AbstractXSD2JavaMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException