public class JarRunner extends Object
| Constructor and Description |
|---|
JarRunner(Parameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
Parameters |
getParameters()
Parameters object maintaining the injected system objects and user arguments
of
RunMojo |
void |
run()
Launches a new JVM based on a given artifact with optional arguments.
|
public JarRunner(Parameters parameters)
public void run()
throws org.eclipse.aether.resolution.DependencyResolutionException,
IOException,
org.apache.maven.plugin.MojoFailureException
The given artifacts dependencies are resolved and a fully qualified class path is created.
The main class to execute can either be specified by argument or is taken from the artifacts JAR.
org.eclipse.aether.resolution.DependencyResolutionException - if resolving dependencies failedIOException - if any IO failure occurredorg.apache.maven.plugin.MojoFailureException - either if no main class is given and
the artifacts JAR does not contain a
main class in its manifest or the
started application stopped with an
exit value not equal to zeropublic Parameters getParameters()
RunMojoCopyright © 2019. All rights reserved.