Package org.springframework.boot.maven
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 SummaryNested classes/interfaces inherited from class org.springframework.boot.maven.AbstractDependencyFilterMojoAbstractDependencyFilterMojo.ExcludeTestScopeArtifactFilter, AbstractDependencyFilterMojo.RuntimeArtifactFilter
- 
Field SummaryFields inherited from interface org.apache.maven.plugin.MojoROLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanprotected org.springframework.boot.maven.RunArgumentsResolve the JVM arguments to use.protected voidrun(org.springframework.boot.maven.JavaProcessExecutor processExecutor, File workingDirectory, List<String> args, Map<String, String> environmentVariables) Run the application.Methods inherited from class org.springframework.boot.maven.AbstractRunMojoexecute, getClassesDirectories, getClassPathUrls, resolveApplicationArguments, resolveEnvVariablesMethods inherited from class org.springframework.boot.maven.AbstractDependencyFilterMojofilterDependencies, getDependencyURLs, setExcludeGroupIds, setExcludes, setIncludes, toURLMethods inherited from class org.apache.maven.plugin.AbstractMojogetLog, getPluginContext, setLog, setPluginContext
- 
Constructor Details- 
RunMojopublic RunMojo()
 
- 
- 
Method Details- 
resolveJvmArgumentsprotected org.springframework.boot.maven.RunArguments resolveJvmArguments()Description copied from class:AbstractRunMojoResolve the JVM arguments to use.- Overrides:
- resolveJvmArgumentsin class- AbstractRunMojo
- Returns:
- a RunArgumentsdefining the JVM arguments
 
- 
runprotected 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:AbstractRunMojoRun the application.- Specified by:
- runin class- AbstractRunMojo
- Parameters:
- processExecutor- the- JavaProcessExecutorto use
- workingDirectory- the working directory of the forked JVM
- args- the arguments (JVM arguments and application arguments)
- environmentVariables- the environment variables
- Throws:
- org.apache.maven.plugin.MojoExecutionException- in case of MOJO execution errors
- org.apache.maven.plugin.MojoFailureException- in case of MOJO failures
 
- 
isUseTestClasspathprotected boolean isUseTestClasspath()- Specified by:
- isUseTestClasspathin class- AbstractRunMojo
 
 
-