@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
| Modifier and Type | Field and Description |
|---|---|
static String |
AOT_PROPERTIES_FILE_NAME |
static String |
NAME |
DEFAULT_EXEC_MAVEN_PLUGIN_VERSION, EXEC_MAVEN_PLUGIN_ARTIFACT, EXEC_MAVEN_PLUGIN_GROUP, EXEC_MAVEN_PLUGIN_VERSION_PROPERTY, packageNamecompilerService, enabled, mavenProject, mavenSession, micronautAotVersion, outputDirectory, repositorySystem, runtime| Constructor and Description |
|---|
AotAnalysisMojo(CompilerService compilerService,
ExecutorService executorService,
org.apache.maven.project.MavenProject mavenProject,
org.apache.maven.execution.MavenSession mavenSession,
org.eclipse.aether.RepositorySystem repositorySystem,
DependencyResolutionService dependencyResolutionService) |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getExtraArgs() |
protected void |
onSuccess(File outputDir) |
doExecuteexecute, getBaseOutputDirectory, outputFilepublic static final String NAME
public static final String AOT_PROPERTIES_FILE_NAME
@Inject public AotAnalysisMojo(CompilerService compilerService, ExecutorService executorService, org.apache.maven.project.MavenProject mavenProject, org.apache.maven.execution.MavenSession mavenSession, org.eclipse.aether.RepositorySystem repositorySystem, DependencyResolutionService dependencyResolutionService)
protected List<String> getExtraArgs() throws org.apache.maven.plugin.MojoExecutionException
getExtraArgs in class AbstractMicronautAotCliMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected void onSuccess(File outputDir) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2020–2023 Micronaut. All rights reserved.