@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 boolean |
enableForkByDefault()
Specify if fork should be enabled by default.
|
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 void |
runWithForkedJvm(File workingDirectory,
List<String> args)
Run with a forked VM, using the specified command line arguments.
|
protected void |
runWithMavenJvm(String startClassName,
String... arguments)
Run with the current VM, using the specified arguments.
|
execute, getClassPathUrls, isFork, resolveApplicationArguments, resolveJvmArgumentsfilterDependencies, getFilters, setExcludeArtifactIds, setExcludeGroupIds, setExcludes, setIncludesprotected boolean enableForkByDefault()
AbstractRunMojoenableForkByDefault in class AbstractRunMojotrue if fork should be enabled by defaultAbstractRunMojo.logDisabledFork()protected void logDisabledFork()
AbstractRunMojologDisabledFork in class AbstractRunMojoAbstractRunMojo.enableForkByDefault()protected void runWithForkedJvm(File workingDirectory, List<String> args) throws org.apache.maven.plugin.MojoExecutionException
AbstractRunMojorunWithForkedJvm in class AbstractRunMojoworkingDirectory - the working directory of the forked JVMargs - the arguments (JVM arguments and application arguments)org.apache.maven.plugin.MojoExecutionException - in case of MOJO execution errorsprotected void runWithMavenJvm(String startClassName, 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 errorsCopyright © 2018 Pivotal Software, Inc.. All rights reserved.