Class RunMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.boot.maven.AbstractDependencyFilterMojo
org.springframework.boot.maven.AbstractRunMojo
org.springframework.boot.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 AbstractRunMojo
Run an application in place.
- Since:
- 1.0.0
- Author:
- Phillip Webb, Dmytro Nosan, Stephane Nicoll, Andy Wilkinson
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractDependencyFilterMojo
AbstractDependencyFilterMojo.ExcludeTestScopeArtifactFilter, AbstractDependencyFilterMojo.RuntimeArtifactFilter
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected org.springframework.boot.maven.RunArguments
Resolve the JVM arguments to use.protected void
run
(org.springframework.boot.maven.JavaProcessExecutor processExecutor, File workingDirectory, List<String> args, Map<String, String> environmentVariables) Run the application.Methods inherited from class AbstractRunMojo
execute, getClassesDirectories, getClassPathUrls, resolveApplicationArguments, resolveEnvVariables
Methods inherited from class AbstractDependencyFilterMojo
filterDependencies, getDependencyURLs, setExcludeGroupIds, setExcludes, setIncludes, toURL
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
RunMojo
@Inject public RunMojo(org.apache.maven.toolchain.ToolchainManager toolchainManager)
-
-
Method Details
-
resolveJvmArguments
protected org.springframework.boot.maven.RunArguments resolveJvmArguments()Description copied from class:AbstractRunMojo
Resolve the JVM arguments to use.- Overrides:
resolveJvmArguments
in classAbstractRunMojo
- Returns:
- a
RunArguments
defining the JVM arguments
-
run
protected void run(org.springframework.boot.maven.JavaProcessExecutor processExecutor, File workingDirectory, List<String> args, Map<String, String> environmentVariables) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:AbstractRunMojo
Run the application.- Specified by:
run
in classAbstractRunMojo
- Parameters:
processExecutor
- theJavaProcessExecutor
to useworkingDirectory
- the working directory of the forked JVMargs
- the arguments (JVM arguments and application arguments)environmentVariables
- the environment variables- Throws:
org.apache.maven.plugin.MojoExecutionException
- in case of MOJO execution errorsorg.apache.maven.plugin.MojoFailureException
- in case of MOJO failures
-
isUseTestClasspath
protected boolean isUseTestClasspath()- Specified by:
isUseTestClasspath
in classAbstractRunMojo
-