public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo
| Constructor and Description |
|---|
AbstractRunMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
enableForkByDefault()
Specify if fork should be enabled by default.
|
void |
execute() |
protected URL[] |
getClassPathUrls() |
protected boolean |
isFork()
Specify if the application process should be forked.
|
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 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(File workingDirectory,
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, setIncludespublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected boolean isFork()
true if the application process should be forkedprotected boolean enableForkByDefault()
true if fork should be enabled by defaultlogDisabledFork()protected void logDisabledFork()
enableForkByDefault()protected abstract void runWithForkedJvm(File workingDirectory, List<String> args) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
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 errorsorg.apache.maven.plugin.MojoFailureException - in case of MOJO failuresprotected 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.MojoExecutionException - in case of MOJO execution errorsorg.apache.maven.plugin.MojoFailureException - in case of MOJO failuresprotected 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 © 2018 Pivotal Software, Inc.. All rights reserved.