Package org.apache.axis2.maven.xsd2java
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.
-
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) 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 classAbstractXSD2JavaMojo
-
addSourceRoot
protected void addSourceRoot(org.apache.maven.project.MavenProject project) - Specified by:
addSourceRootin classAbstractXSD2JavaMojo
-
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 classAbstractXSD2JavaMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-