类 TestRunMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.boot.maven.AbstractDependencyFilterMojo
org.springframework.boot.maven.AbstractRunMojo
org.springframework.boot.maven.TestRunMojo
- 所有已实现的接口:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="test-run",
requiresProject=true,
defaultPhase=VALIDATE,
requiresDependencyResolution=TEST)
@Execute(phase=TEST_COMPILE)
public class TestRunMojo
extends AbstractRunMojo
Run an application in place using the test runtime classpath. The main class that will
be used to launch the application is determined as follows: The configured main class,
if any. Then the main class found in the test classes directory, if any. Then the main
class found in the classes directory, if any.
- 从以下版本开始:
- 3.1.0
- 作者:
- Phillip Webb, Dmytro Nosan, Stephane Nicoll, Andy Wilkinson
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.maven.AbstractDependencyFilterMojo
AbstractDependencyFilterMojo.ExcludeTestScopeArtifactFilter, AbstractDependencyFilterMojo.RuntimeArtifactFilter -
字段概要
从接口继承的字段 org.apache.maven.plugin.Mojo
ROLE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the directories that contain the application's classes and resources.protected booleanprotected org.springframework.boot.maven.RunArgumentsResolve the JVM arguments to use.protected voidrun(org.springframework.boot.maven.JavaProcessExecutor processExecutor, File workingDirectory, List<String> args, Map<String, String> environmentVariables) Run the application.从类继承的方法 org.springframework.boot.maven.AbstractRunMojo
execute, getClassPathUrls, resolveApplicationArguments, resolveEnvVariables从类继承的方法 org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getDependencyURLs, setExcludeGroupIds, setExcludes, setIncludes, toURL从类继承的方法 org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
构造器详细资料
-
TestRunMojo
public TestRunMojo()
-
-
方法详细资料
-
getClassesDirectories
从类复制的说明:AbstractRunMojoReturns the directories that contain the application's classes and resources. When the application's main class has not been configured, each directory is searched in turn for an appropriate main class.- 覆盖:
getClassesDirectories在类中AbstractRunMojo- 返回:
- the directories that contain the application's classes and resources
-
isUseTestClasspath
protected boolean isUseTestClasspath()- 指定者:
isUseTestClasspath在类中AbstractRunMojo
-
resolveJvmArguments
protected org.springframework.boot.maven.RunArguments resolveJvmArguments()从类复制的说明:AbstractRunMojoResolve the JVM arguments to use.- 覆盖:
resolveJvmArguments在类中AbstractRunMojo- 返回:
- a
RunArgumentsdefining the JVM arguments
-
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从类复制的说明:AbstractRunMojoRun the application.- 指定者:
run在类中AbstractRunMojo- 参数:
processExecutor- theJavaProcessExecutorto 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
-