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 Details

    • MAIN_CLASS_NAME

      protected static final String 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

      protected Path generatedSourceDirectory()
    • outputDirectory

      protected Path outputDirectory()
    • sourceRootPaths

      protected List<Path> sourceRootPaths()
    • getClasspathElements

      protected LinkedHashSet<Path> getClasspathElements()
    • bindingClassName

      protected String bindingClassName()
    • scope

      protected CodegenScope scope()
    • testSourceRootPaths

      protected List<Path> 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