Package io.micronaut.maven.aot
Class AotAnalysisMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.micronaut.maven.AbstractMicronautMojo
io.micronaut.maven.aot.AbstractMicronautAotMojo
io.micronaut.maven.aot.AbstractMicronautAotCliMojo
io.micronaut.maven.aot.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 Summary
Fields inherited from class io.micronaut.maven.aot.AbstractMicronautAotCliMojo
DEFAULT_EXEC_MAVEN_PLUGIN_VERSION, EXEC_MAVEN_PLUGIN_ARTIFACT, EXEC_MAVEN_PLUGIN_GROUP, EXEC_MAVEN_PLUGIN_VERSION_PROPERTY, packageName
Fields inherited from class io.micronaut.maven.aot.AbstractMicronautAotMojo
compilerService, enabled, mavenProject, micronautAotVersion, outputDirectory, runtime
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
ConstructorDescriptionAotAnalysisMojo
(CompilerService compilerService, ExecutorService executorService, org.apache.maven.project.MavenProject mavenProject, DependencyResolutionService dependencyResolutionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Methods inherited from class io.micronaut.maven.aot.AbstractMicronautAotCliMojo
doExecute
Methods inherited from class io.micronaut.maven.aot.AbstractMicronautAotMojo
execute, getBaseOutputDirectory, outputFile
Methods inherited from class io.micronaut.maven.AbstractMicronautMojo
setLog
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setPluginContext
-
Field Details
-
NAME
- See Also:
-
AOT_PROPERTIES_FILE_NAME
- See Also:
-
-
Constructor Details
-
AotAnalysisMojo
@Inject public AotAnalysisMojo(CompilerService compilerService, ExecutorService executorService, org.apache.maven.project.MavenProject mavenProject, DependencyResolutionService dependencyResolutionService)
-
-
Method Details
-
getExtraArgs
- Specified by:
getExtraArgs
in classAbstractMicronautAotCliMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
onSuccess
- Throws:
org.apache.maven.plugin.MojoExecutionException
-