public abstract class AbstractMicronautAotMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected CompilerService |
compilerService |
protected boolean |
enabled
Whether to enable or disable Micronaut AOT.
|
protected org.apache.maven.project.MavenProject |
mavenProject |
protected org.apache.maven.execution.MavenSession |
mavenSession |
protected String |
micronautAotVersion
Micronaut AOT version.
|
protected File |
outputDirectory
Directory where compiled application classes are.
|
protected org.eclipse.aether.RepositorySystem |
repositorySystem |
protected String |
runtime
Micronaut AOT runtime.
|
Constructor and Description |
---|
AbstractMicronautAotMojo(CompilerService compilerService,
org.apache.maven.project.MavenProject mavenProject,
org.apache.maven.execution.MavenSession mavenSession,
org.eclipse.aether.RepositorySystem repositorySystem) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doExecute() |
void |
execute() |
protected File |
getBaseOutputDirectory() |
protected File |
outputFile(String name) |
protected final CompilerService compilerService
protected final org.apache.maven.project.MavenProject mavenProject
protected final org.apache.maven.execution.MavenSession mavenSession
protected final org.eclipse.aether.RepositorySystem repositorySystem
@Parameter(property="micronaut.aot.runtime", required=true, defaultValue="jit") protected String runtime
jit
, native
.@Parameter(property="micronaut.aot.version", required=true) protected String micronautAotVersion
@Parameter(property="micronaut.aot.enabled", defaultValue="false") protected boolean enabled
@Parameter(defaultValue="${project.build.outputDirectory}", required=true) protected File outputDirectory
public AbstractMicronautAotMojo(CompilerService compilerService, org.apache.maven.project.MavenProject mavenProject, org.apache.maven.execution.MavenSession mavenSession, org.eclipse.aether.RepositorySystem repositorySystem)
protected final File getBaseOutputDirectory()
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected abstract void doExecute() throws org.eclipse.aether.resolution.DependencyResolutionException, org.apache.maven.plugin.MojoExecutionException
org.eclipse.aether.resolution.DependencyResolutionException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2020–2023 Micronaut. All rights reserved.