类 StartMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.boot.maven.AbstractDependencyFilterMojo
org.springframework.boot.maven.AbstractRunMojo
org.springframework.boot.maven.StartMojo
- 所有已实现的接口:
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
Start a spring application. Contrary to the
run
goal, this does not block and
allows other goals 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.- 从以下版本开始:
- 1.3.0
- 作者:
- Stephane Nicoll
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.maven.AbstractDependencyFilterMojo
AbstractDependencyFilterMojo.ExcludeTestScopeArtifactFilter, AbstractDependencyFilterMojo.RuntimeArtifactFilter
-
字段概要
从接口继承的字段 org.apache.maven.plugin.Mojo
ROLE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<T> T
Execute a task, retrying it on failure.protected boolean
protected org.springframework.boot.maven.RunArguments
Resolve the application arguments to use.protected org.springframework.boot.maven.RunArguments
Resolve the JVM arguments to use.protected void
run
(org.springframework.boot.maven.JavaProcessExecutor processExecutor, File workingDirectory, List<String> args, Map<String, String> environmentVariables) Run the application.从类继承的方法 org.springframework.boot.maven.AbstractRunMojo
execute, getClassesDirectories, getClassPathUrls, resolveEnvVariables
从类继承的方法 org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getDependencyURLs, setExcludeGroupIds, setExcludes, setIncludes, toURL
从类继承的方法 org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
构造器详细资料
-
StartMojo
public StartMojo()
-
-
方法详细资料
-
run
protected void run(org.springframework.boot.maven.JavaProcessExecutor processExecutor, File workingDirectory, List<String> args, Map<String, String> environmentVariables) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException从类复制的说明:AbstractRunMojo
Run the application.- 指定者:
run
在类中AbstractRunMojo
- 参数:
processExecutor
- theJavaProcessExecutor
to useworkingDirectory
- the working directory of the forked JVMargs
- the arguments (JVM arguments and application arguments)environmentVariables
- the environment variables- 抛出:
org.apache.maven.plugin.MojoExecutionException
- in case of MOJO execution errorsorg.apache.maven.plugin.MojoFailureException
- in case of MOJO failures
-
resolveApplicationArguments
protected org.springframework.boot.maven.RunArguments resolveApplicationArguments()从类复制的说明:AbstractRunMojo
Resolve the application arguments to use.- 覆盖:
resolveApplicationArguments
在类中AbstractRunMojo
- 返回:
- a
RunArguments
defining the application arguments
-
resolveJvmArguments
protected org.springframework.boot.maven.RunArguments resolveJvmArguments()从类复制的说明:AbstractRunMojo
Resolve the JVM arguments to use.- 覆盖:
resolveJvmArguments
在类中AbstractRunMojo
- 返回:
- a
RunArguments
defining the JVM arguments
-
execute
Execute a task, retrying it on failure.- 类型参数:
T
- the result type- 参数:
wait
- the wait timemaxAttempts
- the maximum number of attemptscallback
- the task to execute (possibly multiple times). The callback should returnnull
to indicate that another attempt should be made- 返回:
- the result
- 抛出:
Exception
- in case of execution errors
-
isUseTestClasspath
protected boolean isUseTestClasspath()- 指定者:
isUseTestClasspath
在类中AbstractRunMojo
-