类 AbstractRunMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.boot.maven.AbstractDependencyFilterMojo
org.springframework.boot.maven.AbstractRunMojo
- 所有已实现的接口:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- 直接已知子类:
RunMojo
,StartMojo
,TestRunMojo
Base class to run a Spring Boot application.
- 从以下版本开始:
- 1.3.0
- 作者:
- Phillip Webb, Stephane Nicoll, David Liu, Daniel Young, Dmytro Nosan, Moritz Halbritter
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.maven.AbstractDependencyFilterMojo
AbstractDependencyFilterMojo.ExcludeTestScopeArtifactFilter, AbstractDependencyFilterMojo.RuntimeArtifactFilter
-
字段概要
从接口继承的字段 org.apache.maven.plugin.Mojo
ROLE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
execute()
Returns the directories that contain the application's classes and resources.protected URL[]
protected abstract boolean
protected org.springframework.boot.maven.RunArguments
Resolve the application arguments to use.protected org.springframework.boot.maven.EnvVariables
Resolve the environment variables to use.protected org.springframework.boot.maven.RunArguments
Resolve the JVM arguments to use.protected abstract void
run
(org.springframework.boot.maven.JavaProcessExecutor processExecutor, File workingDirectory, List<String> args, Map<String, String> environmentVariables) Run the application.从类继承的方法 org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getDependencyURLs, setExcludeGroupIds, setExcludes, setIncludes, toURL
从类继承的方法 org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
构造器详细资料
-
AbstractRunMojo
public AbstractRunMojo()
-
-
方法详细资料
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- 抛出:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getClassesDirectories
Returns 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.- 返回:
- the directories that contain the application's classes and resources
- 从以下版本开始:
- 3.1.0
-
isUseTestClasspath
protected abstract boolean isUseTestClasspath() -
run
protected abstract 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.MojoFailureExceptionRun the application.- 参数:
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- 从以下版本开始:
- 3.0.0
-
resolveApplicationArguments
protected org.springframework.boot.maven.RunArguments resolveApplicationArguments()Resolve the application arguments to use.- 返回:
- a
RunArguments
defining the application arguments
-
resolveEnvVariables
protected org.springframework.boot.maven.EnvVariables resolveEnvVariables()Resolve the environment variables to use.- 返回:
- an
EnvVariables
defining the environment variables
-
resolveJvmArguments
protected org.springframework.boot.maven.RunArguments resolveJvmArguments()Resolve the JVM arguments to use.- 返回:
- a
RunArguments
defining the JVM arguments
-
getClassPathUrls
- 抛出:
org.apache.maven.plugin.MojoExecutionException
-