@Mojo(name="run",
requiresProject=true,
defaultPhase=VALIDATE,
requiresDependencyResolution=TEST)
@Execute(phase=TEST_COMPILE)
public class RunMojo
extends AbstractRunMojo
| Constructor and Description |
|---|
RunMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
logDisabledFork()
Log a warning indicating that fork mode has been explicitly disabled while some
conditions are present that require to enable it.
|
protected org.springframework.boot.maven.RunArguments |
resolveJvmArguments()
Resolve the JVM arguments to use.
|
protected void |
runWithForkedJvm(java.io.File workingDirectory,
java.util.List<java.lang.String> args,
java.util.Map<java.lang.String,java.lang.String> environmentVariables)
Run with a forked VM, using the specified command line arguments.
|
protected void |
runWithMavenJvm(java.lang.String startClassName,
java.lang.String... arguments)
Run with the current VM, using the specified arguments.
|
execute, getClassPathUrls, getJavaExecutable, isFork, resolveApplicationArguments, resolveEnvVariablesfilterDependencies, getFilters, setExcludeGroupIds, setExcludes, setIncludesprotected void logDisabledFork()
AbstractRunMojologDisabledFork in class AbstractRunMojoprotected org.springframework.boot.maven.RunArguments resolveJvmArguments()
AbstractRunMojoresolveJvmArguments in class AbstractRunMojoRunArguments defining the JVM argumentsprotected void runWithForkedJvm(java.io.File workingDirectory,
java.util.List<java.lang.String> args,
java.util.Map<java.lang.String,java.lang.String> environmentVariables)
throws org.apache.maven.plugin.MojoExecutionException
AbstractRunMojorunWithForkedJvm in class AbstractRunMojoworkingDirectory - the working directory of the forked JVMargs - the arguments (JVM arguments and application arguments)environmentVariables - the environment variablesorg.apache.maven.plugin.MojoExecutionException - in case of MOJO execution errorsprotected void runWithMavenJvm(java.lang.String startClassName,
java.lang.String... arguments)
throws org.apache.maven.plugin.MojoExecutionException
AbstractRunMojorunWithMavenJvm in class AbstractRunMojostartClassName - the class to runarguments - the class argumentsorg.apache.maven.plugin.MojoExecutionException - in case of MOJO execution errors