Class AotAnalysisMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.micronaut.maven.aot.AbstractMicronautAotMojo
io.micronaut.maven.aot.AbstractMicronautAotCliMojo
io.micronaut.maven.aot.AbstractAotAnalysisMojo
io.micronaut.maven.aot.AotAnalysisMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="aot-analysis",
defaultPhase=PREPARE_PACKAGE,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public class AotAnalysisMojo
extends AbstractAotAnalysisMojo
Standalone Micronaut AOT analysis goal.
- Since:
- 3.2.0
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
Fields inherited from class AbstractAotAnalysisMojo
AOT_PROPERTIES_FILE_NAME, NAMEFields inherited from class AbstractMicronautAotCliMojo
DEFAULT_EXEC_MAVEN_PLUGIN_VERSION, EXEC_MAVEN_PLUGIN_ARTIFACT, EXEC_MAVEN_PLUGIN_GROUP, EXEC_MAVEN_PLUGIN_VERSION_PROPERTY, packageNameFields inherited from class 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 booleanControls whether the configured runtime should be normalized against the current project packaging.protected booleanAllows concrete plugins to suppress execution for specific project layouts.Methods inherited from class AbstractAotAnalysisMojo
getExtraArgs, onSuccessMethods inherited from class AbstractMicronautAotCliMojo
doExecuteMethods inherited from class AbstractMicronautAotMojo
execute, getBaseOutputDirectory, outputFile, setLogMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setPluginContext
-
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
-
shouldExecute
Description copied from class:AbstractMicronautAotMojoAllows concrete plugins to suppress execution for specific project layouts.- Overrides:
shouldExecutein classAbstractMicronautAotMojo- Returns:
truewhen AOT execution should proceed
-
alignRuntimeWithPackaging
Description copied from class:AbstractMicronautAotMojoControls whether the configured runtime should be normalized against the current project packaging.- Overrides:
alignRuntimeWithPackagingin classAbstractMicronautAotMojo- Returns:
trueto enforce the integrated packaging/runtime mapping
-