Package org.springframework.boot.maven
Class AbstractAotMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.boot.maven.AbstractDependencyFilterMojo
org.springframework.boot.maven.AbstractAotMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
ProcessAotMojo,ProcessTestAotMojo
Abstract base class for AOT processing MOJOs.
- Since:
- 3.0.0
- Author:
- Phillip Webb, Scott Frederick, Omar YAYA
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classDiagnosticListenerused to collect errors.Nested classes/interfaces inherited from class org.springframework.boot.maven.AbstractDependencyFilterMojo
AbstractDependencyFilterMojo.ExcludeTestScopeArtifactFilter, AbstractDependencyFilterMojo.RuntimeArtifactFilter -
Field Summary
Fields inherited from class org.springframework.boot.maven.AbstractDependencyFilterMojo
projectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidcompileSourceFiles(URL[] classPath, File sourcesDirectory, File outputDirectory) protected final voidvoidexecute()protected abstract voidprotected voidgenerateAotAssets(URL[] classPath, String processorClassName, String... arguments) protected final URL[]getClassPath(File[] directories, org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter... artifactFilters) protected final org.apache.maven.execution.MavenSessionMethods inherited from class org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getDependencyURLs, setExcludeGroupIds, setExcludes, setIncludes, toURLMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractAotMojo
public AbstractAotMojo()
-
-
Method Details
-
getSession
protected final org.apache.maven.execution.MavenSession getSession() -
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
executeAot
- Throws:
Exception
-
generateAotAssets
protected void generateAotAssets(URL[] classPath, String processorClassName, String... arguments) throws Exception - Throws:
Exception
-
compileSourceFiles
protected final void compileSourceFiles(URL[] classPath, File sourcesDirectory, File outputDirectory) throws Exception - Throws:
Exception
-
copyAll
- Throws:
IOException
-