@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 and Description |
|---|
StartMojo() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(long wait,
int maxAttempts,
Callable<T> callback)
Execute a task, retrying it on failure.
|
protected org.springframework.boot.maven.RunArguments |
resolveApplicationArguments()
Resolve the application arguments to use.
|
protected org.springframework.boot.maven.RunArguments |
resolveJvmArguments()
Resolve the JVM arguments to use.
|
protected void |
runWithForkedJvm(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.
|
enableForkByDefault, execute, getClassPathUrls, isFork, logDisabledForkfilterDependencies, getFilters, setExcludeArtifactIds, setExcludeGroupIds, setExcludes, setIncludesprotected void runWithForkedJvm(List<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 org.springframework.boot.maven.RunArguments resolveApplicationArguments()
AbstractRunMojoresolveApplicationArguments in class AbstractRunMojoRunArguments defining the application argumentsprotected org.springframework.boot.maven.RunArguments resolveJvmArguments()
AbstractRunMojoresolveJvmArguments in class AbstractRunMojoRunArguments defining the JVM argumentsprotected 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 errorspublic <T> T execute(long wait,
int maxAttempts,
Callable<T> callback)
throws 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 madeException - in case of execution errorsCopyright © 2017 Pivotal Software, Inc.. All rights reserved.