public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo
| Constructor and Description |
|---|
AbstractRunMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected URL[] |
getClassPathUrls() |
protected boolean |
isFork()
Specify if the application process should be forked.
|
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 abstract void |
runWithForkedJvm(List<String> args)
Run with a forked VM, using the specified command line arguments.
|
protected abstract void |
runWithMavenJvm(String startClassName,
String... arguments)
Run with the current VM, using the specified arguments.
|
filterDependencies, getFilters, setExcludeArtifactIds, setExcludeGroupIds, setExcludes, setIncludesprotected boolean isFork()
true if the application process should be forkedpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract void runWithForkedJvm(List<String> args) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
args - the arguments (JVM arguments and application arguments)org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract void runWithMavenJvm(String startClassName, String... arguments) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
startClassName - the class to runarguments - the class argumentsorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected org.springframework.boot.maven.RunArguments resolveApplicationArguments()
RunArguments defining the application argumentsprotected org.springframework.boot.maven.RunArguments resolveJvmArguments()
RunArguments defining the JVM argumentsprotected URL[] getClassPathUrls() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2015 Pivotal Software, Inc.. All rights reserved.