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

public abstract class AbstractAotMojo extends AbstractDependencyFilterMojo
Abstract base class for AOT processing MOJOs.
Since:
3.0.0
Author:
Phillip Webb, Scott Frederick, Omar YAYA
  • 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.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • executeAot

      protected abstract void executeAot() throws Exception
      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
    • getClassPath

      protected final URL[] getClassPath(File[] directories, org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter... artifactFilters) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • copyAll

      protected final void copyAll(Path from, Path to) throws IOException
      Throws:
      IOException