Class AbstractApplicationRunMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
RunMojo, StartMojo

public abstract class AbstractApplicationRunMojo extends AbstractRunMojo
Base class to run a spring application.
Since:
3.0.0
Author:
Phillip Webb, Stephane Nicoll, David Liu, Daniel Young, Dmytro Nosan
See Also:
  • Constructor Details

    • AbstractApplicationRunMojo

      public AbstractApplicationRunMojo()
  • Method Details

    • run

      protected void run(File workingDirectory, String startClassName, Map<String,String> environmentVariables) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Description copied from class: AbstractRunMojo
      Run with a forked VM, using the specified class name.
      Specified by:
      run in class AbstractRunMojo
      Parameters:
      workingDirectory - the working directory of the forked JVM
      startClassName - the name of the class to execute
      environmentVariables - the environment variables
      Throws:
      org.apache.maven.plugin.MojoExecutionException - in case of MOJO execution errors
      org.apache.maven.plugin.MojoFailureException - in case of MOJO failures
    • run

      protected abstract void run(File workingDirectory, List<String> args, Map<String,String> environmentVariables) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Run with a forked VM, using the specified command line arguments.
      Parameters:
      workingDirectory - the working directory of the forked JVM
      args - the arguments (JVM arguments and application arguments)
      environmentVariables - the environment variables
      Throws:
      org.apache.maven.plugin.MojoExecutionException - in case of MOJO execution errors
      org.apache.maven.plugin.MojoFailureException - in case of MOJO failures
    • getClassPathUrls

      protected URL[] getClassPathUrls() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      getClassPathUrls in class AbstractRunMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException