Package io.joshworks.snappy.maven
Class RunMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.joshworks.snappy.maven.AbstractDependencyFilterMojo
-
- io.joshworks.snappy.maven.AbstractRunMojo
-
- io.joshworks.snappy.maven.RunMojo
-
- All Implemented Interfaces:
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 AbstractRunMojoRun an executable archive application.- Author:
- Phillip Webb, Stephane Nicoll
-
-
Constructor Summary
Constructors Constructor Description RunMojo()
-
Method Summary
Modifier and Type Method Description protected voidrunWithForkedJvm(java.util.List<java.lang.String> args)Run with a forked VM, using the specified command line arguments.protected voidrunWithMavenJvm(java.lang.String startClassName, java.lang.String... arguments)Run with the current VM, using the specified arguments.-
Methods inherited from class io.joshworks.snappy.maven.AbstractRunMojo
execute, getClassPathUrls, isFork, resolveApplicationArguments, resolveJvmArguments
-
Methods inherited from class io.joshworks.snappy.maven.AbstractDependencyFilterMojo
filterDependencies, getFilters, setExcludeArtifactIds, setExcludeGroupIds, setExcludes, setIncludes
-
-
-
-
Method Detail
-
runWithForkedJvm
protected void runWithForkedJvm(java.util.List<java.lang.String> args) throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:AbstractRunMojoRun with a forked VM, using the specified command line arguments.- Specified by:
runWithForkedJvmin classAbstractRunMojo- Parameters:
args- the arguments (JVM arguments and application arguments)- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of MOJO execution errors
-
runWithMavenJvm
protected void runWithMavenJvm(java.lang.String startClassName, java.lang.String... arguments) throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:AbstractRunMojoRun with the current VM, using the specified arguments.- Specified by:
runWithMavenJvmin classAbstractRunMojo- Parameters:
startClassName- the class to runarguments- the class arguments- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of MOJO execution errors
-
-