org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo@Mojo(name="start",
requiresProject=true,
defaultPhase=PRE_INTEGRATION_TEST,
requiresDependencyResolution=TEST)
public class StartMojo
extends AbstractRunMojo
run goal, this does not block and
allows other goal to operate on the application. This goal is typically used in
integration test scenario where the application is started before a test suite and
stopped after.StopMojo| Constructor | Description |
|---|---|
StartMojo() |
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
execute(long wait,
int maxAttempts,
java.util.concurrent.Callable<T> callback) |
Execute a task, retrying it on failure.
|
protected io.joshworks.snappy.maven.RunArguments |
resolveApplicationArguments() |
Resolve the application arguments to use.
|
protected io.joshworks.snappy.maven.RunArguments |
resolveJvmArguments() |
Resolve the JVM arguments to use.
|
protected void |
runWithForkedJvm(java.util.List<java.lang.String> args) |
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.
|
filterDependencies, getFilters, setExcludeArtifactIds, setExcludeGroupIds, setExcludes, setIncludesgetLog, getPluginContext, setLog, setPluginContextexecute, getClassPathUrls, isForkprotected void runWithForkedJvm(java.util.List<java.lang.String> args)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
AbstractRunMojorunWithForkedJvm in class AbstractRunMojoargs - the arguments (JVM arguments and application arguments)org.apache.maven.plugin.MojoExecutionException - in case of MOJO execution errorsorg.apache.maven.plugin.MojoFailureException - in case of MOJO failuresprotected io.joshworks.snappy.maven.RunArguments resolveApplicationArguments()
AbstractRunMojoresolveApplicationArguments in class AbstractRunMojoRunArguments defining the application argumentsprotected io.joshworks.snappy.maven.RunArguments resolveJvmArguments()
AbstractRunMojoresolveJvmArguments in class AbstractRunMojoRunArguments defining the JVM argumentsprotected 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 errorspublic <T> T execute(long wait,
int maxAttempts,
java.util.concurrent.Callable<T> callback)
throws java.lang.Exception
T - the result typewait - the wait timemaxAttempts - the maximum number of attemptscallback - the task to execute (possibly multiple times). The callback should
return null to indicate that another attempt should be madejava.lang.Exception - in case of execution errorsCopyright © 2018. All rights reserved.