Class AotAnalysisMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="aot-analysis", requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class AotAnalysisMojo extends AbstractMicronautAotCliMojo

Invokes the Micronaut AOT optimizer, generating sources/classes and the effective AOT configuration properties file. Refer to the Micronaut AOT documentation for more information.

WARNING: this goal is not intended to be executed directly. Instead, enable AOT with the micronaut.aot.enabled property, eg:

mvn -Dmicronaut.aot.enabled=true package
mvn -Dmicronaut.aot.enabled=true mn:run
  • Field Details

  • Constructor Details

  • Method Details

    • getExtraArgs

      protected List<String> getExtraArgs() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      getExtraArgs in class AbstractMicronautAotCliMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • onSuccess

      protected void onSuccess(File outputDir) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException