Package org.springframework.boot.maven
Class AotGenerateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.boot.maven.AbstractDependencyFilterMojo
org.springframework.boot.maven.AbstractRunMojo
org.springframework.boot.maven.AotGenerateMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="aot-generate",
defaultPhase=PREPARE_PACKAGE,
threadSafe=true,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME)
public class AotGenerateMojo
extends AbstractRunMojo
Invoke the AOT engine on the application.
- Since:
- 3.0.0
- Author:
- Stephane Nicoll, Andy Wilkinson
-
Field Summary
Fields inherited from class org.springframework.boot.maven.AbstractRunMojo
classesDirectory, project
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.boot.maven.AbstractRunMojo
addArgs, addClasspath, addDependencies, addJvmArgs, addProjectClasses, addUserDefinedDirectories, execute, getJavaExecutable, getStartClass, hasTerminatedSuccessfully, resolveApplicationArguments, resolveEnvVariables, resolveJvmArguments
Methods inherited from class org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getFilters, setExcludeGroupIds, setExcludes, setIncludes
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AotGenerateMojo
public AotGenerateMojo()
-
-
Method Details
-
run
protected void run(File workingDirectory, String startClassName, Map<String, String> environmentVariables) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:AbstractRunMojo
Run with a forked VM, using the specified class name.- Specified by:
run
in classAbstractRunMojo
- Parameters:
workingDirectory
- the working directory of the forked JVMstartClassName
- the name of the class to executeenvironmentVariables
- the environment variables- Throws:
org.apache.maven.plugin.MojoExecutionException
- in case of MOJO execution errorsorg.apache.maven.plugin.MojoFailureException
- in case of MOJO failures
-
getClassPathUrls
- Specified by:
getClassPathUrls
in classAbstractRunMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-