Package io.helidon.service.maven.plugin
Class CreateTestApplicationMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.helidon.service.maven.plugin.CreateTestApplicationMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="test-application-create",
defaultPhase=TEST_COMPILE,
threadSafe=true,
requiresDependencyResolution=TEST)
public class CreateTestApplicationMojo
extends org.apache.maven.plugin.AbstractMojo
A mojo wrapper to
BindingGenerator
for test specific types.
For test scope, we only generate binding, as main class would not be useful.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
Class name of the main class generated by Maven plugin (for end user application).Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
final void
execute()
protected Path
protected LinkedHashSet
<Path> protected Path
protected CodegenScope
scope()
Test source roots for this project.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
MAIN_CLASS_NAME
Class name of the main class generated by Maven plugin (for end user application).- See Also:
-
-
Constructor Details
-
CreateTestApplicationMojo
public CreateTestApplicationMojo()Default constructor.
-
-
Method Details
-
generatedSourceDirectory
-
outputDirectory
-
sourceRootPaths
-
getClasspathElements
-
bindingClassName
-
scope
-
testSourceRootPaths
Test source roots for this project.- Returns:
- source roots for test code
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-