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
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
DiagnosticListener
used 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
project
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
compileSourceFiles
(URL[] classPath, File sourcesDirectory, File outputDirectory) protected final void
void
execute()
protected abstract void
protected void
generateAotAssets
(URL[] classPath, String processorClassName, String... arguments) protected final URL[]
getClassPath
(File[] directories, org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter... artifactFilters) Methods inherited from class org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getDependencyURLs, setExcludeGroupIds, setExcludes, setIncludes, toURL
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractAotMojo
public AbstractAotMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.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
-