@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, resolveEnvVariables
filterDependencies, getFilters, setExcludeGroupIds, setExcludes, setIncludes
protected void logDisabledFork()
AbstractRunMojo
logDisabledFork
in class AbstractRunMojo
protected org.springframework.boot.maven.RunArguments resolveJvmArguments()
AbstractRunMojo
resolveJvmArguments
in class AbstractRunMojo
RunArguments
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
AbstractRunMojo
runWithForkedJvm
in class AbstractRunMojo
workingDirectory
- 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
AbstractRunMojo
runWithMavenJvm
in class AbstractRunMojo
startClassName
- the class to runarguments
- the class argumentsorg.apache.maven.plugin.MojoExecutionException
- in case of MOJO execution errors