Class AbstractMicronautAotMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.micronaut.maven.aot.AbstractMicronautAotMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractMicronautAotCliMojo
Abstract Mojo for Micronaut AOT.
- Since:
- 3.2.0
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<org.apache.maven.model.Exclusion> Packages that would be excluded from the AOT processing.protected final CompilerServiceprotected booleanWhether to enable or disable Micronaut AOT.protected final org.apache.maven.project.MavenProjectprotected StringMicronaut AOT version.protected FileDirectory where compiled application classes are.protected StringMicronaut AOT runtime.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMicronautAotMojo(CompilerService compilerService, org.apache.maven.project.MavenProject mavenProject) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanControls whether the configured runtime should be normalized against the current project packaging.protected abstract voidfinal voidexecute()protected final Fileprotected final FileoutputFile(String name) voidsetLog(org.apache.maven.plugin.logging.Log log) protected booleanAllows concrete plugins to suppress execution for specific project layouts.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setPluginContext
-
Field Details
-
compilerService
-
mavenProject
-
runtime
-
micronautAotVersion
Micronaut AOT version. -
enabled
Whether to enable or disable Micronaut AOT. -
outputDirectory
@Parameter(defaultValue="${project.build.outputDirectory}", required=true) protected File outputDirectoryDirectory where compiled application classes are. -
aotExclusions
Packages that would be excluded from the AOT processing.- Since:
- 4.11.0
-
-
Constructor Details
-
AbstractMicronautAotMojo
protected AbstractMicronautAotMojo(CompilerService compilerService, org.apache.maven.project.MavenProject mavenProject)
-
-
Method Details
-
setLog
- Specified by:
setLogin interfaceorg.apache.maven.plugin.Mojo- Overrides:
setLogin classorg.apache.maven.plugin.AbstractMojo
-
getBaseOutputDirectory
-
outputFile
-
execute
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
shouldExecute
Allows concrete plugins to suppress execution for specific project layouts.- Returns:
truewhen AOT execution should proceed
-
alignRuntimeWithPackaging
Controls whether the configured runtime should be normalized against the current project packaging.- Returns:
trueto enforce the integrated packaging/runtime mapping
-
doExecute
protected abstract void doExecute() throws org.eclipse.aether.resolution.DependencyResolutionException, org.apache.maven.plugin.MojoExecutionException- Throws:
org.eclipse.aether.resolution.DependencyResolutionExceptionorg.apache.maven.plugin.MojoExecutionException
-