public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo
| Constructor | Description |
|---|---|
AbstractRunMojo() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
execute() |
|
protected java.net.URL[] |
getClassPathUrls() |
|
protected boolean |
isFork() |
Specify if the application process should be forked.
|
protected io.joshworks.snappy.maven.RunArguments |
resolveApplicationArguments() |
Resolve the application arguments to use.
|
protected io.joshworks.snappy.maven.RunArguments |
resolveJvmArguments() |
Resolve the JVM arguments to use.
|
protected abstract void |
runWithForkedJvm(java.util.List<java.lang.String> args) |
Run with a forked VM, using the specified command line arguments.
|
protected abstract void |
runWithMavenJvm(java.lang.String startClassName,
java.lang.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(java.util.List<java.lang.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.MojoExecutionException - in case of MOJO execution errorsorg.apache.maven.plugin.MojoFailureException - in case of MOJO failuresprotected abstract void runWithMavenJvm(java.lang.String startClassName,
java.lang.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 io.joshworks.snappy.maven.RunArguments resolveApplicationArguments()
RunArguments defining the application argumentsprotected io.joshworks.snappy.maven.RunArguments resolveJvmArguments()
RunArguments defining the JVM argumentsprotected java.net.URL[] getClassPathUrls()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2018. All rights reserved.