Package io.micronaut.maven.aot
Class AbstractMicronautAotMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.micronaut.maven.AbstractMicronautMojo
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.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CompilerService
protected boolean
Whether to enable or disable Micronaut AOT.protected final org.apache.maven.project.MavenProject
protected String
Micronaut AOT version.protected File
Directory where compiled application classes are.protected String
Micronaut AOT runtime.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
ConstructorDescriptionAbstractMicronautAotMojo
(CompilerService compilerService, org.apache.maven.project.MavenProject mavenProject) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
final void
execute()
protected final File
protected final File
outputFile
(String name) Methods inherited from class io.micronaut.maven.AbstractMicronautMojo
setLog
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setPluginContext
-
Field Details
-
compilerService
-
mavenProject
-
runtime
@Parameter(property="micronaut.aot.runtime", required=true, defaultValue="jit") protected String runtimeMicronaut AOT runtime. Possible values:jit
,native
. -
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.
-
-
Constructor Details
-
AbstractMicronautAotMojo
public AbstractMicronautAotMojo(CompilerService compilerService, org.apache.maven.project.MavenProject mavenProject)
-
-
Method Details
-
getBaseOutputDirectory
-
outputFile
-
execute
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
doExecute
protected abstract void doExecute() throws org.eclipse.aether.resolution.DependencyResolutionException, org.apache.maven.plugin.MojoExecutionException- Throws:
org.eclipse.aether.resolution.DependencyResolutionException
org.apache.maven.plugin.MojoExecutionException
-