Class AbstractMicronautAotMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.micronaut.maven.AbstractMicronautMojo
io.micronaut.maven.aot.AbstractMicronautAotMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractMicronautAotCliMojo

public abstract class AbstractMicronautAotMojo extends AbstractMicronautMojo
Abstract Mojo for Micronaut AOT.
  • Field Details

    • compilerService

    • mavenProject

      protected final org.apache.maven.project.MavenProject mavenProject
    • runtime

      @Parameter(property="micronaut.aot.runtime", required=true, defaultValue="jit") protected String runtime
      Micronaut AOT runtime. Possible values: jit, native.
    • micronautAotVersion

      @Parameter(property="micronaut.aot.version", required=true) protected String micronautAotVersion
      Micronaut AOT version.
    • enabled

      @Parameter(property="micronaut.aot.enabled", defaultValue="false") protected boolean enabled
      Whether to enable or disable Micronaut AOT.
    • outputDirectory

      @Parameter(defaultValue="${project.build.outputDirectory}", required=true) protected File outputDirectory
      Directory where compiled application classes are.
  • Constructor Details

  • Method Details

    • getBaseOutputDirectory

      protected final File getBaseOutputDirectory()
    • outputFile

      protected final File outputFile(String name)
    • execute

      public final void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • doExecute

      protected abstract void doExecute() throws org.eclipse.aether.resolution.DependencyResolutionException, org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.eclipse.aether.resolution.DependencyResolutionException
      org.apache.maven.plugin.MojoExecutionException