类 RunMojo
- java.lang.Object
- org.apache.maven.plugin.AbstractMojo
- org.springframework.boot.maven.AbstractDependencyFilterMojo
- org.springframework.boot.maven.AbstractRunMojo
- org.springframework.boot.maven.RunMojo
- 所有已实现的接口:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="run", requiresProject=true, defaultPhase=VALIDATE, requiresDependencyResolution=TEST) @Execute(phase=TEST_COMPILE) public class RunMojo extends AbstractRunMojo
Run an executable archive application.
构造器概要
构造器 构造器 说明 RunMojo()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected boolean
enableForkByDefault()
Specify if fork should be enabled by default.protected void
logDisabledFork()
Log a warning indicating that fork mode has been explicitly disabled while some conditions are present that require to enable it.protected void
runWithForkedJvm(File workingDirectory, 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.从类继承的方法 org.springframework.boot.maven.AbstractRunMojo
execute, getClassPathUrls, isFork, resolveApplicationArguments, resolveJvmArguments
从类继承的方法 org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getFilters, setExcludeArtifactIds, setExcludeGroupIds, setExcludes, setIncludes
构造器详细资料
RunMojo
public RunMojo()
方法详细资料
enableForkByDefault
protected boolean enableForkByDefault()
从类复制的说明:AbstractRunMojo
Specify if fork should be enabled by default.- 覆盖:
enableForkByDefault
在类中AbstractRunMojo
- 返回:
true
if fork should be enabled by default- 另请参阅:
AbstractRunMojo.logDisabledFork()
logDisabledFork
protected void logDisabledFork()
从类复制的说明:AbstractRunMojo
Log a warning indicating that fork mode has been explicitly disabled while some conditions are present that require to enable it.
runWithForkedJvm
protected void runWithForkedJvm(File workingDirectory, List<String> args) throws org.apache.maven.plugin.MojoExecutionException
从类复制的说明:AbstractRunMojo
Run with a forked VM, using the specified command line arguments.- 指定者:
runWithForkedJvm
在类中AbstractRunMojo
- 参数:
workingDirectory
- the working directory of the forked JVMargs
- the arguments (JVM arguments and application arguments)- 抛出:
org.apache.maven.plugin.MojoExecutionException
- in case of MOJO execution errors
runWithMavenJvm
protected void runWithMavenJvm(String startClassName, String... arguments) throws org.apache.maven.plugin.MojoExecutionException
从类复制的说明:AbstractRunMojo
Run with the current VM, using the specified arguments.- 指定者:
runWithMavenJvm
在类中AbstractRunMojo
- 参数:
startClassName
- the class to runarguments
- the class arguments- 抛出:
org.apache.maven.plugin.MojoExecutionException
- in case of MOJO execution errors