类 AbstractRunMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.boot.maven.AbstractDependencyFilterMojo
org.springframework.boot.maven.AbstractRunMojo
所有已实现的接口:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
直接已知子类:
RunMojo, StartMojo, TestRunMojo

public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo
Base class to run a Spring Boot application.
从以下版本开始:
1.3.0
作者:
Phillip Webb, Stephane Nicoll, David Liu, Daniel Young, Dmytro Nosan, Moritz Halbritter
另请参阅:
  • 构造器详细资料

    • AbstractRunMojo

      public AbstractRunMojo()
  • 方法详细资料

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      抛出:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getClassesDirectories

      protected List<File> getClassesDirectories()
      Returns the directories that contain the application's classes and resources. When the application's main class has not been configured, each directory is searched in turn for an appropriate main class.
      返回:
      the directories that contain the application's classes and resources
      从以下版本开始:
      3.1.0
    • isUseTestClasspath

      protected abstract boolean isUseTestClasspath()
    • run

      protected abstract void run(org.springframework.boot.maven.JavaProcessExecutor processExecutor, File workingDirectory, List<String> args, Map<String,String> environmentVariables) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Run the application.
      参数:
      processExecutor - the JavaProcessExecutor to use
      workingDirectory - the working directory of the forked JVM
      args - the arguments (JVM arguments and application arguments)
      environmentVariables - the environment variables
      抛出:
      org.apache.maven.plugin.MojoExecutionException - in case of MOJO execution errors
      org.apache.maven.plugin.MojoFailureException - in case of MOJO failures
      从以下版本开始:
      3.0.0
    • resolveApplicationArguments

      protected org.springframework.boot.maven.RunArguments resolveApplicationArguments()
      Resolve the application arguments to use.
      返回:
      a RunArguments defining the application arguments
    • resolveEnvVariables

      protected org.springframework.boot.maven.EnvVariables resolveEnvVariables()
      Resolve the environment variables to use.
      返回:
      an EnvVariables defining the environment variables
    • resolveJvmArguments

      protected org.springframework.boot.maven.RunArguments resolveJvmArguments()
      Resolve the JVM arguments to use.
      返回:
      a RunArguments defining the JVM arguments
    • getClassPathUrls

      protected URL[] getClassPathUrls() throws org.apache.maven.plugin.MojoExecutionException
      抛出:
      org.apache.maven.plugin.MojoExecutionException