Class RunMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="run", requiresProject=true, defaultPhase=VALIDATE, requiresDependencyResolution=TEST) @Execute(phase=TEST_COMPILE) public class RunMojo extends AbstractRunMojo
Run an application in place.
Since:
1.0.0
Author:
Phillip Webb, Dmytro Nosan, Stephane Nicoll, Andy Wilkinson
  • Constructor Details

    • RunMojo

      public RunMojo()
  • Method Details

    • logDisabledFork

      protected void logDisabledFork()
      Description copied from class: AbstractRunMojo
      Log a warning indicating that fork mode has been explicitly disabled while some conditions are present that require to enable it.
      Overrides:
      logDisabledFork in class AbstractRunMojo
    • resolveJvmArguments

      protected org.springframework.boot.maven.RunArguments resolveJvmArguments()
      Description copied from class: AbstractRunMojo
      Resolve the JVM arguments to use.
      Overrides:
      resolveJvmArguments in class AbstractRunMojo
      Returns:
      a RunArguments defining the JVM arguments
    • runWithForkedJvm

      protected void runWithForkedJvm(File workingDirectory, List<String> args, Map<String,String> environmentVariables) throws org.apache.maven.plugin.MojoExecutionException
      Description copied from class: AbstractRunMojo
      Run with a forked VM, using the specified command line arguments.
      Specified by:
      runWithForkedJvm in class AbstractRunMojo
      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
    • runWithMavenJvm

      protected void runWithMavenJvm(String startClassName, String... arguments) throws org.apache.maven.plugin.MojoExecutionException
      Description copied from class: AbstractRunMojo
      Run with the current VM, using the specified arguments.
      Specified by:
      runWithMavenJvm in class AbstractRunMojo
      Parameters:
      startClassName - the class to run
      arguments - the class arguments
      Throws:
      org.apache.maven.plugin.MojoExecutionException - in case of MOJO execution errors