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
FieldsFields 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, packageNameFields inherited from class io.micronaut.maven.aot.AbstractMicronautAotMojo
aotExclusions, compilerService, enabled, mavenProject, micronautAotVersion, outputDirectory, runtimeFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionAotAnalysisMojo(CompilerService compilerService, ExecutorService executorService, org.apache.maven.project.MavenProject mavenProject, DependencyResolutionService dependencyResolutionService, org.apache.maven.execution.MavenSession mavenSession, org.apache.maven.toolchain.ToolchainManager toolchainManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidMethods inherited from class io.micronaut.maven.aot.AbstractMicronautAotCliMojo
doExecuteMethods inherited from class io.micronaut.maven.aot.AbstractMicronautAotMojo
execute, getBaseOutputDirectory, outputFileMethods inherited from class io.micronaut.maven.AbstractMicronautMojo
setLogMethods 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, org.apache.maven.execution.MavenSession mavenSession, org.apache.maven.toolchain.ToolchainManager toolchainManager)
-
-
Method Details
-
getExtraArgs
- Specified by:
getExtraArgsin classAbstractMicronautAotCliMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
onSuccess
- Throws:
org.apache.maven.plugin.MojoExecutionException
-